- Home
- Integrations
- OpenAI (ChatGPT)
- OpenAI (ChatGPT) + Telegram
ChatGPT autoposting to a Telegram channel on a schedule
ChatGPT autoposting to a Telegram channel in nana800 takes three blocks: a schedule starts the scheme, ChatGPT writes a post on your topic, and a bot publishes it. You need an OpenAI API key and a bot with admin rights in the channel, no code and no server. OpenAI bills the answers to your OpenAI account, and block runs are paid from your nana800 balance, topped up to $3.50 for free every month.
Build it in the builderWhat you can automate
- Post a tip, a fact or a roundup about your shop, blog or service to the channel every morning
- Run weekly sections: each section gets its own scheme with its own day, hour and ChatGPT brief
- Get a ready draft in your private chat and publish it by hand once you have read it
- Publish posts to a customer or team group, including a specific group topic
- Post with a picture: ChatGPT draws an image, the save file block gives it a link, and the bot sends the photo with a caption
How to set it up
- 1
Prepare the bot and the channel
Create a bot with @BotFather using /newbot and copy the token. Add the bot to your channel as an admin allowed to post messages. For a public channel its @name is enough. For a private one get the ID from @getmyid_bot, it starts with -100.
- 2
Get an OpenAI key
In your OpenAI account open API keys, click Create new secret key and copy the key that starts with sk-. Add funds to the OpenAI account: with an empty balance ChatGPT will not answer, and the block returns the reason.
- 3
Set the schedule
Create a scheme and add the time internal schedule trigger. Pick the hour, the minute and your time zone, and a day of the week if you do not post daily. With no hour selected the scheme runs every hour, so always set the hour.
- 4
Add the ChatGPT request
Add the Open AI request block in TEXT_COMPLETION mode and paste the key. Describe the channel, tone and post format in the system instruction and give the topic in the prompt. Ask for fewer than 4000 characters, because Telegram rejects longer messages.
- 5
Add publishing to the channel
Add the Telegram message send block, paste the bot token and the channel name or ID. Put the ChatGPT answer from the text_response field into the message text and pick the plain_text format, so a stray asterisk does not break the message.
- 6
Turn the scheme on and test it
Add the button trigger, turn the scheme on and press the button: the post appears in the channel right away. If it does not, open the block results to see the answer from OpenAI or Telegram. Keep the scheme on. The schedule only works while the scheme is on, which costs $0.0042 per hour.
Pricing
A run of a OpenAI (ChatGPT) block costs $0.002, a run of a Telegram block costs $0.001. Every month the balance is topped up to $3.50 for free, an enabled scheme costs $0.0042 per hour.
Services in this connection
- OpenAI (ChatGPT)
Use the ChatGPT API without code: reply to leads, summarize emails, read photos, get JSON for tables and generate images. Your OpenAI key, free balance every month.
- Telegram
Build a Telegram bot without code: reply to messages, add buttons, send leads and alerts to a chat, group or channel. Free balance every month, no card needed.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder