tg-pane — Telegram in a Claude Code pane
Standalone terminal (Pi, Codex, native Herdr, or any terminal)
The Python backend also has an independent frontend: python terminal.py (use the Python environment
where Playwright is installed). It uses the same TG_PANE_DATA configuration and Telegram session.
No Claude process or AI model is required. The original Claude plugin remains unchanged.
Folders → chats → history: arrow keys/Enter or mouse, Esc goes back, / filters chat names,
r refreshes, wheel/PgUp/PgDown scroll history, i writes, Enter on a message replies.
Sending requires a second explicit y confirmation; Esc cancels. Private history is never marked read
merely by viewing it. L opens the existing QR/password login flow. q exits.
This is a basic frontend, not full plugin parity: message reactions/edit/delete/forward,
media viewing, digests and message-text search remain available only in the original plugin.
Requests refresh at most once a minute while open, FLOOD_WAIT pauses for ten minutes,
and an unresponsive CDP browser is restarted at most once every five minutes.
No failed send is automatically retried. Offline UI tests: python -m unittest discover -s tests -p 'test_*.py'.
Read your Telegram chats and channels beside the conversation, and ask Claude to retell the unread posts by topic.
No API key, no bot — it works through your own logged-in Telegram Web.
Quick start (details in Install):
/plugin install tg-pane --marketplace 34823/tg-pane
Then /tg-pane, scan the QR code with your phone — done.
Features
- Private — chats with people, unread first; read a chat without sending «read», reply from the input field.
The other person sees «read» only when you reply.
- Categories — All chats, then your Telegram folders, with unread counts and a preview. Open one to see its
chats, open a chat to read it (in a group, with who wrote what), scroll back with the mouse wheel (or ▲ / ▼); a picture has an ▣ open row — it is downloaded only then and drawn over the chat inside the pane (✕ closes). Theme in the header flips the colour. Summary ▾ on a folder
or a channel/group offers unread (marks them read), or day / week / month (marks nothing read): Claude reads the posts and retells them by topic, right in the conversation. Mark all read
clears a folder.
- Search — the field above the chat list finds chats by name at once and, on Enter, messages in all chats (Telegram's own search);
⌕ in a chat's top row searches inside that chat, and a hit opens a window around the message.
- Messages — one press picks a message (it is lit, its actions replace the top row): reply, edit and delete (only my own; delete asks first),
react, forward (choose a chat, then confirm). Two presses in a row make it the target of a reply: the field says «↪», the message stays lit.
Replies, forwards, reactions and «edited» show under/next to the message.
- Voice messages and video notes — «♪ voice · transcribe» asks Telegram (needs Telegram Premium) for the text and keeps it under the message.
- Times on the right, in your time zone: the system's, or — on a server set to UTC — asked once in the pane.
- The pane opens where you left it, after
/clear and after a restart.
- Login by QR code drawn in the pane; works in a narrow pane too (list, then chat).
[Private 3] [Categories 41] [Refresh] cache 15:48
[← Folders] Interesting 34 [Summary] [Mark all read]
Markets News (7) 09:00 Club chat [Mark read (2)] [Summary]
Club chat (2) 08:12 ▲ older
Markets Wed — 8.10 —
… Pete: who's coming to training? 08:12
How it works