Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
/ telegram-bot-api Public archive

This is an api-project for the telegram bot (HTTPS) api.

License

Notifications You must be signed in to change notification settings

rainu/telegram-bot-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-api

This is an api-project for the telegram bot (HTTPS) api. For additional informations see the official telegram bot api documentation.

Usage

import de.raysha.lib.telegram.bot.api.BotAPI;
import de.raysha.lib.telegram.bot.api.TelegramBot;
import de.raysha.lib.telegram.bot.api.model.User;

...

final String botToken = "11111-aaaabbbbbccccddddeeeeffff";
final BotAPI telegramBot = new TelegramBot(botToken);

try{
  User user = telegramBot.getMe();
}catch(BotException e){
  System.err.println("Could not get me!");
}

License

This Bot-API is distributed under the MIT-License.

Maven Usage

If you want to add telegram-bot-api to your maven project, you can add the following dependency in your pom.xml:

  <dependency>
    <groupId>de.raysha.lib.telegram</groupId>
    <artifactId>bot-api</artifactId>
    <version>2.1</version>
  </dependency>

About

This is an api-project for the telegram bot (HTTPS) api.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages