Skip to content

wf4java/WF-TelegramBotApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WF-TelegramBotApi:

Maven:

Java(min): 17

  <dependency>
    <groupId>io.github.wf4java</groupId>
    <artifactId>WF-TelegramBotApi</artifactId>
    <version>2.1</version>
  </dependency>

Example:

TelegramBot telegramBot = new TelegramBot("username", "token");

telegramBot.addHandler(new MessageHandler() {
    @Override
    public void onTextMessage(String text, Long chatId, Message message, BotExecutor botExecutor, Update update) {
        botExecutor.deleteMessage(chatId, message.getMessageId());
        botExecutor.sendMessage(chatId, text);
    }
});

About

Making it easy to create a telegram bot in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages