Sync TG Targets
sync_tg_targets[write] Re-read the channels and groups of a Telegram account from Telegram (through the account's live connection): new ones appear, ones the account left are flagged present = false, member counts and posting rights are refreshed. account_id = tg_account_id (or pass account_uuid). Returns how many targets there are and how many can be posted to. It talks to Telegram, so call it once per account, not in a loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | ||
| account_uuid | No |