Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Manage Telegram bot profile, commands, photos, menu button, and admin rights from any agent via Bot API.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
telegram-bot-settings/SKILL.md
1---2name: telegram-bot-settings3description: Inspect and change Telegram bot public identity and Bot API account settings from any agent that can run local Python. Works well with Codex, Claude Code, OpenClaw, and similar runtimes.4---56# Telegram Bot Settings78Use the bundled Python CLI to inspect and update Telegram Bot API account-level settings.910This skill is runtime-neutral: it works from Codex, Claude Code, OpenClaw, or any other agent that can read local files and run `python3`.1112## Quick start1314Run a full snapshot first:1516```bash17python3 {baseDir}/scripts/telegram_bot_settings.py status18```1920## Token resolution2122The CLI resolves the bot token in this order:231. `--token`242. `TELEGRAM_BOT_TOKEN`, `BOT_TOKEN`, or `TG_BOT_TOKEN`253. `--token-file`264. `TELEGRAM_BOT_TOKEN_FILE`, `BOT_TOKEN_FILE`, `TG_BOT_TOKEN_FILE`, or `OPENCLAW_TELEGRAM_TOKEN_FILE`275. Common secret files and dotenv-style files such as `./secrets/telegram-bot-settings.env`, `./.env.local`, `./.env`, or `~/.config/telegram-bot-settings/bot.token`2829If you want a simple default, store the token in one of those secret locations and run the commands without passing `--token` each time.3031## Common tasks3233### Inspect current settings3435```bash36python3 {baseDir}/scripts/telegram_bot_settings.py status37python3 {baseDir}/scripts/telegram_bot_settings.py get-name38python3 {baseDir}/scripts/telegram_bot_settings.py get-description39python3 {baseDir}/scripts/telegram_bot_settings.py get-short-description40```4142### Change public identity4344```bash45python3 {baseDir}/scripts/telegram_bot_settings.py set-name --text "Northline Utility Bot"46python3 {baseDir}/scripts/telegram_bot_settings.py set-description --text "Workflow and automation bot for Telegram-based operations."47python3 {baseDir}/scripts/telegram_bot_settings.py set-short-description --text "Telegram bot settings helper"48python3 {baseDir}/scripts/telegram_bot_settings.py set-photo ./avatar.png49python3 {baseDir}/scripts/telegram_bot_settings.py remove-photo50```5152Notes:53- `set-photo` auto-converts static non-JPEG images to JPEG when Pillow is available.54- Add `--animated --main-frame-timestamp 0.0` for MPEG4 animated avatars.55- Add `--language-code uk` (or another code) for localized name/description fields.5657### Manage commands5859```bash60python3 {baseDir}/scripts/telegram_bot_settings.py get-commands61python3 {baseDir}/scripts/telegram_bot_settings.py set-commands --commands @commands.json62python3 {baseDir}/scripts/telegram_bot_settings.py delete-commands63```6465### Manage menu button6667```bash68python3 {baseDir}/scripts/telegram_bot_settings.py get-menu-button69python3 {baseDir}/scripts/telegram_bot_settings.py set-menu-button --button '{"type":"commands"}'70```7172### Manage default admin rights7374```bash75python3 {baseDir}/scripts/telegram_bot_settings.py get-default-admin-rights76python3 {baseDir}/scripts/telegram_bot_settings.py set-default-admin-rights --rights @rights.json77python3 {baseDir}/scripts/telegram_bot_settings.py set-default-admin-rights --clear78```7980## Raw method escape hatch8182Use `raw` when Telegram adds a method before this wrapper is updated:8384```bash85python3 {baseDir}/scripts/telegram_bot_settings.py raw getMe86python3 {baseDir}/scripts/telegram_bot_settings.py raw setMyCommands --data @payload.json87```8889For file uploads, pass `--file field=/path/to/file` and reference it via `attach://field` inside `--data`.9091## Guardrails9293- Run `status` before large edits so you have a clean baseline.94- Prefer `@file.json` for long payloads instead of fragile shell escaping.95- Do not assume every BotFather setting exists in Bot API.96- If the request is about exact method coverage, JSON payload shapes, or what is still BotFather-only, read `references/bot-api-settings.md`.97