← ClaudeAtlas

tg-bridgelisted

Use this skill when an agent needs the user while they are away from the terminal — ask a yes/no or multiple-choice question in Telegram and wait (submit gates, «отправлять?»), ask for an SMS/OTP code, send a notification, screenshot or file to the user's phone, read what the user forwarded to the bot (recruiter replies, vacancy posts, screenshots), or attach a one-tap button that runs a whitelisted local command. Also when the user says «спроси в телеге», «пришли в тг», «что я скинул боту», or a hook reports «в TG inbox N новых». Requires the `tg` command (scripts/install.sh).
Sapar-hub/sapar-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill Sapar-hub/sapar-skills
# tg-bridge `tg` is a thin CLI over the Telegram Bot API (`scripts/tg.py`, stdlib only). One daemon (`systemd --user` unit `tg-bridge`) owns `getUpdates`; `tg ask` without a daemon polls by itself. Check availability with `command -v tg`; if it is missing, ask in the terminal as usual. ```bash tg send "Готово: 3 отклика" [--html] [--photo shot.png] [--doc resume.pdf] tg send --stdin < report.txt # empty stdin = nothing is sent tg ask "Отправить отклик в Ozon?" --photo shot.png --buttons "отправить,правка,стоп" --timeout 900 tg ask "Код из SMS для job.mts.ru" --text # the user replies with text; stdout = the text tg inbox # forwarded items as JSON lines, moved to inbox/done/ tg inbox --peek | --count tg action add contacts-log -- /usr/bin/python3 -I /abs/contacts.py log {arg} sent tg action add contact --desc "контакт: Компания; Имя; @ник" -- /usr/bin/python3 -I /abs/contacts.py quick -- {arg} tg topic rm 98172 98175 # удалить вкладки (с перепиской) и их записи в threads.json/sessions # action с {arg} и --desc = ещё и команда в меню бота: «/contact <текст>» отдаёт весь текст после команды в {arg} # (один элемент argv, без shell). Имя команды: [a-z0-9_]. Меню обновляется при старте демона. # --hint "пример" (≤64 симв.): «/contact» без текста присылает формат (вывод action с "help") с force_reply и этой # серой подсказкой в поле ввода; реплаи на это сообщение 30 мин идут в action как {arg}. /help перечи