Delete this chat and all its messages. Note: - does not delete messages on server - the chat or contact is not blocked, new message will arrive
(self)
| 47 | return ffi.gc(lib.dc_get_chat(self.account._dc_context, self.id), lib.dc_chat_unref) |
| 48 | |
| 49 | def delete(self) -> None: |
| 50 | """Delete this chat and all its messages. |
| 51 | |
| 52 | Note: |
| 53 | |
| 54 | - does not delete messages on server |
| 55 | - the chat or contact is not blocked, new message will arrive |
| 56 | """ |
| 57 | lib.dc_delete_chat(self.account._dc_context, self.id) |
| 58 | |
| 59 | def block(self) -> None: |
| 60 | """Block this chat.""" |
no outgoing calls