Return True if this chat is a group chat. :returns: True if chat is a group-chat, False otherwise
(self)
| 67 | # ------ chat status/metadata API ------------------------------ |
| 68 | |
| 69 | def is_group(self) -> bool: |
| 70 | """Return True if this chat is a group chat. |
| 71 | |
| 72 | :returns: True if chat is a group-chat, False otherwise |
| 73 | """ |
| 74 | return lib.dc_chat_get_type(self._dc_chat) == const.DC_CHAT_TYPE_GROUP |
| 75 | |
| 76 | def is_single(self) -> bool: |
| 77 | """Return True if this chat is a single/direct chat, False otherwise.""" |
no outgoing calls