TelegramBots / Telegram.Bot.Examples

Examples for the Telegram.Bot C# Library
MIT License
630 stars 289 forks source link

OnCallbackQuery & OnInlineQuery are never fired... #144

Closed yakeer closed 6 years ago

yakeer commented 6 years ago

BotAPI.OnCallbackQuery += BotAPI_OnCallbackQuery;

Been trying to fire them with "new InlineKeyboardCallbackButton("Add Agent", "btnAddAgent")", keyboards, but with no luck.

Is it an open issue or only in my case? Basically tried everything...

yakeer commented 6 years ago

I'm updating that after updating to v14.0 alpha problem was solved..

karb0f0s commented 6 years ago

Please provide more specifics: What library version are you using? What type of polling are you using (long poling or webhook)? Do you receive any updates at all? Have you tried this example https://github.com/TelegramBots/telegram.bot.examples/tree/master/Telegram.Bot.Examples.Echo?

yakeer commented 6 years ago

I was using the latest stable one and it did not work. I upgraded to the latest alpha version and it suddenly works.

I did receive Message updates, and I was using long polling.

karb0f0s commented 6 years ago

fixed in v14