Search public Telegram channel posts after consent
telegram_search_public_postsSearch public Telegram channels for posts while enforcing quota checks and explicit user consent before running each read-only query. Confirm to retrieve approved results.
Instructions
Execute a public-channel search only after the quota check and user consent.
First use ordinary account-history search, then telegram_get_public_search_quota. Explain the actual free quota, possible consumption of one attempt, and wider scope; ask the user and WAIT. Set user_confirmed=true only after their explicit reply approving this exact query, and supply its fresh confirmation_token. A generic request to find information is not consent. Missing confirmation performs no search. New/reworded queries always need fresh consent, even if cached-free. A valid next_cursor continues the same approved query for free without another token/confirmation; retain short/empty page continuations. Limits are checked again before execution. Quota changes/expiry require a new check and user consent. Never offer or spend Stars, buy attempts, or retry a paid request. At most one native search is performed per call. Unavailable is not an empty success. No joins, read-state changes or media downloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| cursor | No | ||
| user_confirmed | No | ||
| confirmation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| quota | Yes | ||
| reason | No | ||
| status | Yes | ||
| next_cursor | Yes | ||
| quota_source | Yes | ||
| searched_scope | No | public_channel_posts | |
| trust_boundary | No | ||
| requested_limit | Yes | ||
| normalized_query | Yes | ||
| search_performed | Yes | ||
| stars_authorized | No | ||
| retry_after_seconds | No | ||
| duplicates_omitted_count | No |