get message text 获取对话的消息文本. Args: None Examples: >>> msg.text() Returns: str: the message text
(self)
| 331 | return talker |
| 332 | |
| 333 | def text(self) -> str: |
| 334 | """ |
| 335 | get message text |
| 336 | |
| 337 | 获取对话的消息文本. |
| 338 | Args: |
| 339 | None |
| 340 | Examples: |
| 341 | >>> msg.text() |
| 342 | Returns: |
| 343 | str: the message text |
| 344 | """ |
| 345 | if self.payload.text: |
| 346 | return self.payload.text |
| 347 | return '' |
| 348 | |
| 349 | async def to_recalled(self) -> Message: |
| 350 | """ |
no outgoing calls
no test coverage detected