rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

TelegramBots Java API add likes buttons to the posts #474

Closed Artgit closed 6 years ago

Artgit commented 6 years ago

I use TelegramBots Java API. I need to add like buttons to my posts in Telegram. Right now I'm unable to find information how it can be done with TelegramBots Java API. I think that InlineKeyboardMarkup or @like bot should be used for this purpose but I don't know how to use it from TelegramBots. Please show how to properly add like buttons to the posts.

hmartinh commented 6 years ago

You can implement your own "like" widget, instead of using 3d party bots. You have to use InlineKeyboardMarkup, handle callback queries and store this clicks in any db.