sync_dialog_contacts
Import a telegram_mtproto userbot's existing chats as contacts — DM partners, groups, and channels — so everything the account already talks to becomes a valid send_message target without waiting for each chat to message first. Requires the manage_broadcasts permission. Reads the account's dialog list live (the userbot must be connected; large accounts can take up to a minute) and creates missing contacts; existing contacts are untouched, so the call is idempotent. Pass kinds to narrow the import (e.g. ["group","channel"] to leave personal DMs out). Does NOT change the watched-groups list. botId may be omitted when the application has exactly one userbot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| botId | No | The telegram_mtproto bot. Omit when the application has exactly one userbot. | |
| kinds | No | Dialog kinds to import. Defaults to all three ("user" = the account's direct-message partners). | |
| limit | No | How many most-recent dialogs to read from the account. Defaults to 1000. | |
| applicationId | No | Application (workspace) id. Optional: an application-scoped key (app_...) defaults to its own application, but a personal key (usr_...) has no default and omitting it fails with MCP_APPLICATION_REQUIRED. Call list_applications to get the id. |