A callback button needs an acknowledgment
When a Telegram inline keyboard button carries callback_data, tapping it sends a callback query to your bot. Telegram shows a progress indicator until the bot calls answerCallbackQuery. Sending an ordinary chat reply or editing the original message can show a result while the button still spins.
Start with the update types your code requests. Bothosting’s Telegram examples request only message updates. A project based on one of them must add callback_query to the allowed updates for its active delivery mode and provide code to handle that update.
Trace a single harmless tap
Send a private test message with one inline keyboard button. Use a short value such as help:hours as its callback data. In the handler, read the incoming callback query’s own id. The original message ID and the chat ID identify different objects.
answerCallbackQuery
{ "callback_query_id": "<id from callback_query>", "text": "Opening hours selected" }Pass the real callback ID from that tap and acknowledge it promptly. Once the indicator clears, send or edit the useful result, such as this week’s opening hours. If the acknowledgment arrives but the update to the message fails, you have isolated the problem to the second action.
Test a second tap before adding side effects
Record the callback’s action name and whether acknowledgment succeeded. Tap again and check that the handler sees the new callback ID. If nothing arrives, revisit the update list and make sure the running polling worker or registered webhook is the one you just deployed.
For a real booking or signup, verify the user’s permission and the current record before applying the action. Two deliberate taps can have two callback IDs while referring to the same booking. See Telegram’s callback query fields and acknowledgment method.