telegram-bot-api-commands-keyboards-and-input
SKILL.md
Telegram Bot API: Commands, Keyboards, and Input
Purpose
Use this skill when defining how users will tell the bot what to do.
Core API surface
- Bot commands and command scopes
setMyCommands,getMyCommands,deleteMyCommandssetChatMenuButton,getChatMenuButtonReplyKeyboardMarkupReplyKeyboardRemoveForceReplyKeyboardButtonKeyboardButtonRequestUser,KeyboardButtonRequestChat, contact/location/poll requests
Developer guidance
- Define concise command names and descriptions.
- Always implement
/startand/help. - Add
/settingsif the bot has mutable per-user preferences. - Keep command validation server-side; command scopes do not replace authorization.
- Prefer explicit buttons when free text would increase user error.
Input surface choices
- Commands for expert or repeat usage
- Reply keyboards for constrained answers
- Force reply for step-by-step collection in privacy mode
- Chat or user selection buttons when the bot needs identifiers without copy/paste
- Menu button for command discovery or Mini App entry
Group-specific concerns
- Privacy mode changes which messages the bot receives.
- Commands in groups should remain explicit and auditable.
- Avoid fragile natural-language parsing in groups.
Common mistakes
- Treating command scope as access control.
- Building flows that require messages the bot will never receive in privacy mode.
- Using reply keyboards when inline keyboards or editing would feel smoother.
- Forgetting localization for command descriptions and menu text.
Read next
06-inline-mode-and-callbacks07-chat-types-membership-and-invites20-localization-testing-and-local-bot-api
Weekly Installs
2
Repository
nzhulikov/teleg…t-skillsFirst Seen
11 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2