UC PR Bot
AI setup for one group

How to set up a Telegram bot with AI

This guide is for UC PR Bot. Describe how posting access should work. The assistant returns JSON. The bot shows a summary and changes nothing before Apply.

01

Open the group in @UCPRbot

Choose the Telegram group first. The JSON does not contain a group id, so the bot cannot apply settings to another chat.

02

Copy the instruction

In the group menu tap Set up with AI, then Copy the instruction. The bot sends a file named ucprbot-ai-prompt.txt.

03

Give it to any capable AI

Attach the file or paste its contents into ChatGPT, Claude, Gemini, DeepSeek or another assistant that can return JSON. Then describe the group in ordinary words.

Screenshots show the English bot interface. The bot's full menu and all member notifications are also available in English.

Open Set up with AI in the group menu
Open Set up with AI in the group menu
Copy the instruction, then send the JSON back here
Copy the instruction, then send the JSON back here

4. Send JSON back to the bot

The reply must be a JSON object with schema ucprbot.settings.v1. Send that text or a .json file. If the answer is too long for a Telegram message, send a file.

5. Review and apply

The bot shows what will change. Nothing is saved until you tap Apply. Unknown fields, extra code and settings for another group are rejected.

The instruction arrives as a short text file
The instruction arrives as a short text file

Which AI tools can prepare the settings

Any assistant that accepts a text instruction and can return JSON is enough. You do not give it the bot token or Telegram access. The bot still checks every field.

What to tell the assistant

Channel subscription only

Require a subscription to @mychannel before posting. Keep anti-spam on. Do not require invites.

One real invite

A member may post after adding one friend by hand. Watch that the invited person stays for 3 days. Joining by a link does not count.

Both conditions, English notices

Require the channel subscription and one invite. Show member notices in English and delete them after 5 minutes.

What the JSON can set

  • Up to five public channels or groups, named by @username or t.me link.
  • Four access rules: subscription only, invites only, both, or either one.
  • Invite count 0, 1, 2 or 3. Only people added by hand count.
  • Invite watch is how long the invited member must stay. Access still opens immediately.
  • Group notice language, welcome message, anti-spam, notice lifetime and custom condition text up to 200 characters.
  • The assistant cannot grant administrator rights or add the bot to channels for you.

Technical schema

Machine-readable fields stay in English. If a field is omitted, an existing group keeps its current value. Open ai-settings.v1.json.

Frequently asked questions

Does this work with any Telegram bot?

No. The instruction, JSON schema and Apply button belong to UC PR Bot.

Can I paste a plain-language description into the bot?

No. The bot reads JSON text or a .json file. Describe the group to the AI, then send its JSON here.

What if the JSON is too long for a Telegram message?

Send a .json file. That is the safer path when the assistant returns a full settings object.

Will the bot change settings before I confirm?

No. The preview is only a draft. Apply saves it. Cancel leaves the group unchanged.

Can I still set everything with buttons?

Yes. Use the ordinary setup guide if you prefer taps over JSON.

Describe the group, then confirm in Telegram

Open @UCPRbot, copy the instruction, send the JSON back and tap Apply only after the summary looks right.