MCPcopy Create free account
hub / github.com/chatmail/core / is_group

Method is_group

python/src/deltachat/chat.py:69–74  ·  view source on GitHub ↗

Return True if this chat is a group chat. :returns: True if chat is a group-chat, False otherwise

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 3

test_is_groupMethod · 0.80
test_group_chat_qrMethod · 0.80
test_reply_privatelyFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_is_groupMethod · 0.64
test_group_chat_qrMethod · 0.64
test_reply_privatelyFunction · 0.64