Zernio for Gemini CLI
Add the server
Writes it to ~/.gemini/settings.json for every project.
Run Telegram from Gemini CLI
Reply to messages in the group or channel and publish posts on Telegram, from Gemini CLI. Gemini CLI reads a lot at once, so a quarter of conversations or campaign rows fits in one question, with the answer saved as a CSV.
- Inbox
- Publishing
A quarter of Telegram messages, read in one go with Gemini CLI
Gemini CLI is an open source terminal agent with a large context window. Pull months of platform history into one session, ask what it shows, and get the answer as a CSV for Google Sheets or a summary to paste into a Doc.
- 01
Ask Gemini CLI: "pull 90 days of Telegram conversations and list what people ask most".
- 02
It reads the conversations through Zernio and keeps them all in context while it groups them.
- 03
It writes triage.csv for the ones still open; edit the reply column in Sheets and save it back.
- 04
Gemini CLI reads your edits and sends only the rows you marked.
How people run Telegram from Gemini CLI
What Telegram keeps asking
Pull a quarter of Telegram messages into one session and ask for the recurring questions with a quote each. The large context window means the whole quarter is read together, not sampled.
Replies edited in Sheets
Gemini CLI writes open Telegram messages to a CSV with a suggested reply column. Your team edits it in Google Sheets, marks rows to send, and Gemini CLI sends only those.
House rules in GEMINI.md
Write your tone, banned phrases and escalation rules for Telegram into GEMINI.md. Gemini CLI loads that file as context in every session, so a new teammate's prompts follow the same rules.
Gemini CLI and Telegram in 4 steps
Gemini CLI reaches Telegram through the Zernio MCP server. No Zernio server to host and no Telegram developer app of your own.
01
Connect Telegram
Sign up free and connect a Telegram channel or group, with Zernio's bot @LateScheduleBot as an admin who can post in Zernio.
Connect Telegram02
Add the server
--scope user writes it to ~/.gemini/settings.json for every project. Leave it out to add it to this project's .gemini/settings.json only.
03
Sign in
In a Gemini CLI session, start the OAuth flow and approve it in the browser. Gemini CLI discovers Zernio's OAuth settings on its own.
04
Check it works
Run /mcp in a session and confirm zernio shows as CONNECTED with its tools listed.
Good to know in Gemini CLI
- --scope user puts zernio in ~/.gemini/settings.json for every project; leave it out to keep it to one project's .gemini/settings.json.
- Put reply rules and tone in a GEMINI.md file; Gemini CLI loads it as context, so drafts follow the same rules in every session.
- gemini -p runs one prompt with no session, and --output-format json returns the answer as structured data for a shell script.
What Gemini CLI can do on Telegram
Gemini CLI reads a lot at once, so a quarter of conversations or campaign rows fits in one question, with the answer saved as a CSV.
Inbox
Reads months of Telegram messages in one session to find what people ask most, then sends the replies you approved in a CSV.
Messages in the connected group or channel, with replies, attachments and inline keyboards.
Publishing
Schedules Telegram posts row by row from a CSV your team filled in, after the rest of the work is done.
- Text messages
- Photo, video and document messages with a caption
Ask in plain words. Gemini CLI picks the tools.
Written for how Gemini CLI works. Copy one, change the details.
Read everything at once, answer in a sheet, in Gemini CLI
Telegram rules the agent runs into
Set by Telegram's API or by Zernio, whichever agent you use. Checked against the Zernio Telegram docs on December 4, 2026.
- The bot must be an administrator with the Post Messages permission, or every post fails.
- In a group, posts appear as "Social Media Connector". In a channel they appear as the channel.
Connecting Gemini CLI is free. Its calls bill like the API requests behind them.
Each Telegram account counts as one connected account. The first 2 connected accounts are free, then $6 per account a month, falling to $1 as you add more.
Frequently Asked Questions
Connect a Telegram channel or group, with Zernio's bot @LateScheduleBot as an admin who can post in Zernio first. Then, in Gemini CLI: add the server and sign in. Run /mcp in a session and confirm zernio shows as CONNECTED with its tools listed.
With --scope user it goes in ~/.gemini/settings.json for every project. Without it, it goes in the project's own .gemini/settings.json.
Through files. Export the sheet as CSV and Gemini CLI reads it from disk, and it writes results back as CSV for you to import. Zernio does the Telegram side.
Gemini CLI has a large context window, so months of Telegram conversations or campaign rows usually fit in one session. For very long ranges, ask it to work month by month and combine the results.
Yes. gemini -p runs a single prompt without opening a session, and --output-format json returns the response and stats as JSON. You can also pipe a file in on stdin.
Write them in a GEMINI.md file. Gemini CLI loads it as context at the start of each session, so tone and escalation rules apply without repeating them in every prompt.
Yes, under Apache 2.0. You can read how it connects to MCP servers like Zernio, and its settings live in plain settings.json files.
Add @LateScheduleBot to the channel or group as an administrator with permission to post, then send it the access code Zernio gives you. The code is valid for 15 minutes.
Give Gemini CLI your Telegram account
Connect a Telegram channel or group, with Zernio's bot @LateScheduleBot as an admin who can post, add Zernio to Gemini CLI, and ask.
- Inbox
- Publishing