Skip to content
Telegram Inline Que...
 
Notifications
Clear all

Telegram Inline Queries and Callback Data

2 Posts
2 Users
0 Reactions
4 Views
Roshini
(@roshini)
Posts: 1
New Member
Topic starter
 

Hi everyone! I'm developing a chatbot and want to implement inline buttons within the bot's messages. My goal is for users to click these buttons and be directed to different parts of the Telegram interface.

  1. Currently, I can create template buttons, but clicking them doesn't trigger the desired action, or it opens a sample URL. I'd like users to be directed to another chat within Telegram itself. For example, if a user clicks a button mentioning `@hiwordlebot`, I want them to be taken directly to that chat. Is this functionality possible?
    Screenshot 2024-07-02 100250

  2. Instead of users manually typing `@gamee`, `@gamebot`, or `@gamesrobot` into the keyboard and waiting for games to appear, can I achieve this through a button? When a user clicks a button, I want those specific queries to be automatically entered into the search bar. Could you please advise on the functions and mapping required for this?
    image

  3. I saw a reference from another user where clicking "quiz 1" led to the next page. I'm aiming for a similar user experience. Specifically, I want to know how to use inline queries, answer to inline query, or callback queries to replicate this flow.
    image
    image

For all three points, I'm currently facing challenges in connecting my modules and am unsure which functions or modules to use.

  • Should I be passing the answer through an inline query module?
  • How do I map my callback query to make the buttons responsive?

image

image

Any help would be greatly appreciated, as I need the inline and callback queries to function correctly to proceed with my project. Thank you!
blueprint (1).json (195.4 KB)

 
Posted : 02/07/2024 2:13 am
jjjw
 jjjw
(@jjjw)
Posts: 1
New Member
 

Did you manage to resolve this issue? I'm encountering a similar problem.

 
Posted : 12/08/2024 9:07 pm
Share: