pengrad / java-telegram-bot-api

Telegram Bot API for Java

Home Page:https://core.telegram.org/bots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get updates for reactions?

peterarsentev opened this issue · comments

I see that you added Reaction API in your lib, but I don't get how to config allow_updates.
Could you please show some examples?

As i see you need to pass parameters to getUpdates method, as specified in Bot API documentation.

In code it will look like this:
TelegramBot bot = new TelegramBot("$TOKEN");
bot.execute(new GetUpdates().allowedUpdates("message_reaction", "message_reaction_count"));