tdlib / telegram-bot-api

Telegram Bot API server
https://core.telegram.org/bots
Boost Software License 1.0
2.94k stars 569 forks source link

/answerInlineQuery weird issue #568

Closed busslina closed 2 months ago

busslina commented 2 months ago

I use with success /sendMessage, /deleteMessage, /setWebhook, /deleteWebhook, /getWebhookInfo, ... but when calling /answerInlineQuery I'm receiving this:

{ok: false, error_code: 400, description: Bad Request: USER_BOT_INVALID}

It's weird because I'm using the same HTTP client configured with base url to '$telegramApiBase/bot$token', ...

Any help?

Thanks

levlam commented 2 months ago

Check that inline mode is enabled for the bot and it has just received an inline query.

busslina commented 2 months ago

Check that inline mode is enabled for the bot and it has just received an inline query.

Thank you, and I'm sorry because it was my error. I was supposed to use answerCallbackQuery.

Now works fine.

Anyway, can you suggest me a Forum to discuss Telegram (Api), like a Discord or something?

Thanks

levlam commented 2 months ago

You can ask questions at https://t.me/BotTalk.