The message Variable¶
In TBL, message contains only the text of a message.
Example value:
"Hello bot"
How message Works¶
- If the update type is a text message,
messagecontains that text - If the update is not a text message,
messageisnull
This means:
- Text message →
messagehas value - Photo, sticker, button, webhook, etc. →
messageis null
Important Notes¶
messagecontains text only- It does not include media or metadata
- It exists only during command execution
For simple bots, message is the easiest way to read user input.