skip to Main Content

How can I get rid of the spinner in Telegram bot inline button? I’m using the pyTelegramBotApi (Telebot) library.

Remove spinner :

enter image description here

2

Answers


  1. It will stop when you answer the callback query.

    See CallbackQuery in Telegram Api Docs.

    NOTE: After the user presses a callback button, Telegram clients will
    display a progress bar until you call answerCallbackQuery. It is,
    therefore, necessary to react by calling answerCallbackQuery even if
    no notification to the user is needed (e.g., without specifying any of
    the optional parameters).

    Also Python Telegram Bot documentation:

    https://python-telegram-bot.readthedocs.io/en/stable/telegram.callbackquery.html

    Login or Signup to reply.
  2. bot.answer_callback_query(callback_query_id=call.id)
    

    Use this.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search