sync load message Examples: >>> msg.ready()
(self)
| 521 | return user_self.contact_id in self.payload.mention_ids |
| 522 | |
| 523 | async def ready(self) -> None: |
| 524 | """ |
| 525 | sync load message |
| 526 | Examples: |
| 527 | >>> msg.ready() |
| 528 | """ |
| 529 | log.debug('Message ready <%s>', self) |
| 530 | if self.is_ready(): |
| 531 | return |
| 532 | |
| 533 | self.payload = await self.puppet.message_payload(self.message_id) |
| 534 | |
| 535 | if self.payload.from_id.strip() != '': |
| 536 | talker = self.wechaty.Contact.load(self.payload.from_id) |
| 537 | await talker.ready() |
| 538 | if self.payload.room_id.strip() != '': |
| 539 | room = self.wechaty.Room.load(self.payload.room_id) |
| 540 | await room.ready() |
| 541 | if self.payload.to_id.strip() != '': |
| 542 | to_contact = self.wechaty.Contact.load(self.payload.to_id) |
| 543 | await to_contact.ready() |
| 544 | |
| 545 | async def forward(self, to: Union[Room, Contact]) -> None: |
| 546 | """ |
no test coverage detected