A Telegram script is needed for parsing participants, adding them to contacts, and inviting them to my groups with anti-ban logic.
1. Goal
A solution needs to be implemented for the automatic collection of participants from a Telegram group, adding them to the contacts of a Telegram account, and subsequently inviting them to my other Telegram groups with minimal risk of bans.
2. Input data
Link to the Telegram group/chat from which participants need to be taken
Telegram account(s) for work (provided by me)
List of target Telegram groups where users need to be added
3. Functionality
3.1 Adding to contacts
Automatic addition of collected users to the contacts of the Telegram account
Ability to:
set limits (for example, 20–40 contacts/day)
random pauses
Action log (who was added, who was skipped)
3.2. Re-adding to other groups
Inviting collected users to my Telegram groups
Settings:
invite only after adding to contacts
daily limits
pauses between actions
Skipping users:
if invites are prohibited
if already in the group
4. Anti-ban and security
Working through:
Telethon / Pyrogram (Python)
Mandatory:
delays between actions
limits on quantity
support for working with multiple accounts
No mass actions "at once"
5. Interface / management
One of the options (at the discretion of the performer):
CLI (console)
simple menu:
parse participants
add to contacts
invite to groups
6. Work result
Working script
Instructions:
how to run
what limits to set
how to change groups
Test on 1 account
7. Limitations
I understand the risks of Telegram
Mass addition = possible restrictions
The performer is not responsible for account bans if I violate the recommended limits