Client. Export Messages (TelegramClientGetMessages)#
Exports messages from a chat. The export of messages occurs from the last one,
i.e., from bottom to top.
| Connection | [Link] Client connection object. The variable name in this property must match the variable name in the "Connection" property of the "Client. Create Connection" block from the Telegram group that was previously used to connect the Telegram client. |
| Destination | [Text] Destination object. This string can contain the following values:
|
| Offset | [Number] Message identifier from which the export starts. The default value is set to 0, which means loading messages from the very last one. |
| Count | [Number] Sets a limit on the number of messages to be exported at one time. |
| Contact Filter | [Text] String for filtering contacts in the chat. Searches for the occurrence of the specified value in Id, FirstName, LastName, Username, Phone. |
| Message Filter | [Text] String for filtering the message text. Searches for the occurrence of the specified value. |
| Message Stream | [Text] String with the message stream identifier. Used when working with news comments. |
| Number of Attempts | [Number] Number of attempts in case of a communication error with the server. |
| Messages | [List] Returns a list of messages. Each item in the list is a message object. The object has the following properties:
|
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the level of messages that will be output by the blocks during operation. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block's work. |