# prepare\_reply\_batch

Source: <https://telegafirst.com/docs/mcp-tool-prepare-reply-batch>
Locale: ru
releaseGitSha: 005a4dc9d76f69a0815df4e3f98b9050d4d46afb
sourceContentDigest: 8257185c39f60c504cef3551d2410575e1be583153fc4873ccb7c14140384ce0
Version: 15

# prepare\_reply\_batch

Prepare personal messages for a human to approve: a reply to each customer's last message, a proactive message, or a ready card of a product, event, chain or other entity. Choosing the path: a personal text for each customer goes through prepare\_reply\_batch then execute\_reply\_batch; one identical message to a whole segment goes through broadcasts (create\_broadcast). Get recipients from sample\_segment\_audience or list\_dialogs. Each item is one customer, by user\_id: a message (kind 'message', the default) with text and/or media, caption, entities and buttons. Pass reply\_to\_message\_id as a message\_id from get\_conversation for one of this customer's messages to answer it: the reply arrives as a quote. Pass reply\_to\_message\_id: null to write first (a greeting, an offer): a new message that answers nothing; leave it out to answer the customer's last message. An entity\_card item (kind 'entity\_card') carries target (the entity shown, as in a button) and on\_active for a chain the customer is already in; it answers nothing. Each button is {text} with exactly one of url, callback\_data or web\_app\_url (https; a Mini App only on an origin registered for your business, see get\_mini\_app\_links; else a plain link), plus an optional style (primary, success or danger) and icon\_custom\_emoji\_id. Media are refs from media\_finalize or media\_import\_files; upload a heavy file once, reuse it. The result is the exact batch: each customer's name, the content and reply\_to\_message\_id — the message answered (null for a proactive item, an entity card, or no customer message). A message\_id that is not a quotable message of that customer refuses the whole batch, nothing is prepared (REPLY\_TARGET\_NOT\_FOUND names the items). A batch does not skip customers who opted out of promotions, because it carries personal messages and not promotion: promotional text to someone who opted out is at the owner's own risk. Show the batch to the owner or operator; call execute\_reply\_batch only after they say to send. Nothing is sent here.

## Права и условия

required\_scopes: ALL.

| Поле | Значение |
| - | - |
| description | "Prepare personal messages for a human to approve: a reply to each customer's last message, a proactive message, or a ready card of a product, event, chain or other entity. Choosing the path: a personal text for each customer goes through prepare\_reply\_batch then execute\_reply\_batch; one identical message to a whole segment goes through broadcasts (create\_broadcast). Get recipients from sample\_segment\_audience or list\_dialogs. Each item is one customer, by user\_id: a message (kind 'message', the default) with text and/or media, caption, entities and buttons. Pass reply\_to\_message\_id as a message\_id from get\_conversation for one of this customer's messages to answer it: the reply arrives as a quote. Pass reply\_to\_message\_id: null to write first (a greeting, an offer): a new message that answers nothing; leave it out to answer the customer's last message. An entity\_card item (kind 'entity\_card') carries target (the entity shown, as in a button) and on\_active for a chain the customer is already in; it answers nothing. Each button is {text} with exactly one of url, callback\_data or web\_app\_url (https; a Mini App only on an origin registered for your business, see get\_mini\_app\_links; else a plain link), plus an optional style (primary, success or danger) and icon\_custom\_emoji\_id. Media are refs from media\_finalize or media\_import\_files; upload a heavy file once, reuse it. The result is the exact batch: each customer's name, the content and reply\_to\_message\_id — the message answered (null for a proactive item, an entity card, or no customer message). A message\_id that is not a quotable message of that customer refuses the whole batch, nothing is prepared (REPLY\_TARGET\_NOT\_FOUND names the items). A batch does not skip customers who opted out of promotions, because it carries personal messages and not promotion: promotional text to someone who opted out is at the owner's own risk. Show the batch to the owner or operator; call execute\_reply\_batch only after they say to send. Nothing is sent here." |
| domain | "dialogs" |
| name | "prepare\_reply\_batch" |
| platform\_version | "1.0.34" |
| required\_scopes | \["dialogs:write"] |
| risk | "write" |
| scope | "dialogs:write" |
| title | "Prepare Reply Batch" |

## Входные параметры

[prepare\_reply\_batch: inputSchema](https://telegafirst.com/docs/schema-0ab60cd820a4bd9120f9dfa117ad5a642493df66d75b8ddf8eb041471e4ef7a0)

## Результат

[prepare\_reply\_batch: outputSchema](https://telegafirst.com/docs/schema-3687f38c78465299a73d7a93ebccaa242f1c2d8894d74dfbb9b62e11130598ed)
