Responses
An object that represents a message.
- Parameters
content (
Optional[BaseContent]) – The message content.keyboard (
Optional[Keyboard]) – The message keyboard.payload (
Optional[dict]) – The message payload.
Format and return message content.
- Return type
dict- Returns
Formatted message content.
Serialize the class instance to a dictionary.
- Return type
dict- Returns
A serialized class instance.
Update the message payload.
- Parameters
payload (
dict) – New message payload.- Return type
None
Bases:
objectAn object that represents a message and can be used to change the current menu.
- Parameters
message (
Optional[Message]) – The message.menu (
Optional[str]) – The name of the menu to go to.go_back_count (
Optional[int]) – How many steps to go back.
Serialize the class instance to a dictionary.
- Return type
dict- Returns
A serialized class instance.
Update the message payload.
- Parameters
payload (
dict) – New message payload.- Return type
None