Destructure Telegram Context
Category: Processing
Description: When a bot interacts with a user in Telegram, it receives a "Context" object. This object contains a lot of information about the interaction, such as who sent the message, in which chat it was sent, and the content of the message. This module breaks down that complex object into individual, usable pieces of information.
Default
| Name | Type | Required | Description |
|---|
| Telegram Context | json | true | The context object from a Telegram trigger |
Outputs
| Name | Type | Description |
|---|
| Date | number | The date the event happened |
| Message Text | text | The text of the message. Only available for text-based messages. |
| Message ID | number | The ID of the message |
| Chat ID | number | The unique ID of the chat where the message was sent |
| Chat Title | text | The name of the chat |
| Chat Type | text | The type of chat (e.g. group, private, channel) |
| Sender ID | number | The ID of the user who sent the message |
| New Chat Member IDs | number-array | A list of users who just joined the chat |
| Left Chat Member ID | number | The user who left the chat |
Output Event Triggers