Every inline Telegram bot lives or dies by two things: relevance and latency. There is no onboarding, no menu, no conversation — a user types @yourbot query in any chat, a panel appears above the keyboard, and they tap a result.
I built an image search bot (@repinlybot) and this post is about the Telegram side of it: how inline mode works, which parameters actually change behaviour, and
Enabling inline mode
In BotFather:
/setinline Choose a bot: @yourbot Prompt: Search images…
Enter fullscreen mode
Exit fullscreen mode
The prompt is the placeholder users see. Keep it short and make it obvious what they can type.
The update flow
User types "@yourbot cats" | v Telegram --inline_query--> your backend <--answerInlineQuery-- your backend | v Panel with results -> tap -> content sent to the chat
Enter fullscreen mode
Exit fullscreen mode
Two update types matter:
inline_query — the user typed or changed the query.
chosen_inline_result — the user picked a result.…