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 @UC_PR_bot

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 additions.

Add one person

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

Both conditions, English notices

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

What the JSON can set

  • Free: Up to three public channels or groups, named by @username or t.me link.
  • Four access rules: subscription only, additions only, both, or either one.
  • Free: Add a member count 0, 1, 2 or 3. Only people added by hand count.
  • Add a member watch is how long the added member must stay. Access still opens immediately.
  • Group notice language, 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 @UC_PR_bot, copy the instruction, send the JSON back and tap Apply only after the summary looks right.

Free and Pro

Free: For free, you can require members of this group to join up to 3 channels or groups and manually add up to 3 people to your group.

Pro: For this group, you can require members to join up to 7 channels or groups and manually add up to 6 people to your group. Invisible conditions: when a member tries to post, the bot shows them a card with conditions and buttons right in the group. Only that member sees it, keeping the feed clear for everyone else. Price: 150 Stars for 30 days for one group. To pay, open the bot, select your group and tap “⭐ Pro”.

Existing 4 or 5 active Free targets are preserved. After disabling, pausing or removing a target, restoring it above the limit of 3 requires Pro.

Videos and screenshots show an earlier interface. The current limits are listed here.