Skip to content

Tag: telegram

Getting callback query from telegram inline buttons

I am new to telegram inline bot. I have no clue how I can retrieve the callback function of telegram’s inlinekeyboardbuttons. Would be forever greatful if someone can explain this to me how I could retrieve user response. Answer You have to use CallbackQueryHandler to assing function to data If you use …

How to delete queue updates in telegram api?

I’m trying to delete messages from /getUpdates in telegram API but I didn’t know how.. I tried to use /deleteMessage But it didn’t delete message from API database.. Answer TL;DR: Call getUpdates() with the offset parameter set to the last message’s id, incremented by 1 We’ll nee…