whatsapie/ext/message/text.py
Text
Bases: Message
Inherits from Message class.
Inherits from Message class, represents a Text Message api object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
str
|
Message body text. |
required |
preview_url |
bool
|
Must be set to true, when you want to render the embed for the url in the body. |
False
|
Source code in whatsapie/ext/message/text.py
preview_url(_state=None)
Toggles the preview url state
Parameters:
Name | Type | Description | Default |
---|---|---|---|
_state |
bool
|
New preview_url state. |
None
|