Skip to main content

Group Invites

The Group Invites (拉人进群) module coordinates multiple Telegram user accounts to batch-invite target prospects into specified groups. The system performs member pre-checks and duplicates filtering before dispatching calls, strictly adhering to pacing intervals and account quota caps.

Core Workflow​

Executing an invitation run follows four main steps:

  1. Import Candidate Users: Click Import (导入) to load user lists via Paste Usernames (粘贴用户名) or CSV / TXT File (CSV / TXT 文件). Formats such as @username and t.me/username links are supported. The system normalizes entries and filters duplicates automatically.
  2. Select Execution Accounts: Click Select Accounts (选择账号) at the bottom footer. Pick the accounts assigned to this run. The engine dispatches them concurrently according to system concurrency limits, taking them offline once done.
  3. Specify Target Group: Choose the Target Group (目标群) under the parameters panel. Group options populate from the chats joined by the selected execution accounts. If loading is in progress, the chosen group remains preserved and permissions are re-evaluated during invitation.
  4. Configure Parameters and Start: Adjust interval and quota fields, click Save Configuration (保存配置) to persist settings locally, and click Start (开始拉人) to initiate the task.

To halt an active run, click Stop (停止拉人). The system enters Stopping (收尾中) status, waiting for ongoing network calls to settle before clean termination. Remaining unhandled candidates transition to Canceled.

Parameters and Pacing Presets​

Pacing protects accounts from hitting Telegram rate limits. The module provides three quick presets alongside custom numeric fields:

PresetIntervalDaily Limit / AccountRun Limit / AccountRecommended Scenario
Steady (稳妥) (Default)90–180s55Fresh accounts or accounts recovering from restrictions
Standard (标准) (Recommended)45–90s1010Established accounts with stable history
Fast (快速)30–60s1515Higher-load settings; assess permissions and risk yourself

Field definitions:

  • Invite Interval (邀请间隔): Random delay between two consecutive network requests by the same account (1–86400s). The delay applies across pre-checks and final invitation calls.
  • Daily Limit per Account (每号每日上限): Maximum invitation attempts permitted for a single account within the current calendar day (1–10000).
  • Run Limit per Account (每号本次上限): Maximum invitation attempts permitted for a single account throughout this specific task run (1–10000).
  • Continue on Error (失败时跳过当前用户,继续处理队列): Enabled by default. Skips the candidate and advances the queue when an attempt fails due to privacy or chat restrictions. Disabling this stops further attempts from the affected account upon failure.

:::warning Quota Accounting Rule Quotas track invitation attempts. Once an account submits a network request to Telegram, it counts against both run and daily quotas regardless of whether the result is success, failure, or unconfirmed. If a run is canceled before request submission, reserved quota is refunded automatically. :::

Pre-Checks and Status Lifecycle​

Before submitting an invitation request to Telegram, the engine executes local filters and remote checks to conserve quota:

  1. Local Filtering: Discards candidates claimed by parallel workers, bots, deactivated accounts, and the execution account itself.
  2. Identity Resolution: Resolves usernames or IDs via Telegram. Candidates that cannot be located fail resolution and retry if eligible.
  3. Member Pre-Check: Inspects user status within the target chat:
    • Already in chat: Candidate status updates to Skipped with reason 用户已在目标群.
    • Banned by chat: Candidate status marks Failed without issuing an invitation, requiring chat administrator resolution.

Candidate statuses:

Status TagStatus CodeDescription
Pending (待拉取)pendingWaiting to be claimed and processed
Inviting (拉取中)invitingAccount is resolving, checking, or submitting the invitation
Success (已加入)successSuccessfully invited or confirmed present in the group
Skipped (已跳过)skippedAlready in group, bot, deleted user, or self-account
Failed (拉取失败)failedExplicitly rejected by Telegram (privacy restricted, banned, member cap reached)
Unknown (结果未知)unknownTimed out or unconfirmed response with member re-check unable to verify addition
Canceled (已取消)canceledRemaining candidates when the user stops the task
Unstarted (未开始)unstartedInitial state before task submission

Runtime Architecture and Persistence Limits​

  • In-Memory Snapshot: Candidate tables, live logs, and run-level statistics reside in an in-memory runtime snapshot. Switching or refreshing views reloads the current snapshot; exiting or restarting the app loses unexported snapshots. Use Export (导出) on the candidates card to save results to a local CSV file.
  • Persistent Daily Quota: Daily invitation attempt counts per account are persisted in the local SQLite database. Quotas enforce across restarts and configuration adjustments. Once an account reaches its daily ceiling, it withdraws automatically.
  • Concurrency Scheduling: Multiple execution accounts process candidate queues concurrently based on the global system concurrency settings.

Telegram Platform and Permission Limits​

Group Invites operates strictly within Telegram client protocol capabilities and cannot circumvent standard platform boundaries:

  • User Privacy Settings: If a user restricts group invites to mutual contacts or nobody (USER_PRIVACY_RESTRICTED / USER_NOT_MUTUAL_CONTACT), Telegram rejects the request directly.
  • Group Permissions: The execution account must be a group member, and the chat must allow members to add users. If restricted to admins, the execution account must possess administrative invite rights.
  • Chat Type Constraints: The tool supports basic groups and supergroups. Channels and broadcast forums do not permit arbitrary member additions.
  • Telegram Anti-Spam Control: Frequent additions risk triggering FLOOD_WAIT or PEER_FLOOD restrictions. When encountered, the system disables the affected account for the run and logs the incident. Maintain conservative intervals and quota thresholds.