MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / __init__

Method __init__

ehforwarderbot/chat.py:658–673  ·  view source on GitHub ↗
(self, *, channel: Optional[SlaveChannel] = None, middleware: Optional[Middleware] = None,
                 module_name: str = "", channel_emoji: str = "", module_id: ModuleID = ModuleID(""), name: str = "",
                 alias: Optional[str] = None, id: ChatID = ChatID(""), uid: ChatID = ChatID(""),
                 vendor_specific: Dict[str, Any] = None,
                 description: str = "", notification: ChatNotificationState = ChatNotificationState.ALL,
                 with_self: bool = True, other_is_self: bool = False)

Source from the content-addressed store, hash-verified

656 other: ChatMember
657
658 def __init__(self, *, channel: Optional[SlaveChannel] = None, middleware: Optional[Middleware] = None,
659 module_name: str = "", channel_emoji: str = "", module_id: ModuleID = ModuleID(""), name: str = "",
660 alias: Optional[str] = None, id: ChatID = ChatID(""), uid: ChatID = ChatID(""),
661 vendor_specific: Dict[str, Any] = None,
662 description: str = "", notification: ChatNotificationState = ChatNotificationState.ALL,
663 with_self: bool = True, other_is_self: bool = False):
664 super().__init__(channel=channel, middleware=middleware, module_name=module_name, channel_emoji=channel_emoji,
665 module_id=module_id, name=name, alias=alias, id=id, uid=uid, vendor_specific=vendor_specific,
666 description=description, notification=notification, with_self=with_self)
667 if other_is_self and with_self:
668 assert self.self is not None
669 self.other = self.self
670 else:
671 self.other = self.add_member(name=name, alias=alias, uid=uid, vendor_specific=vendor_specific,
672 description=description)
673 self.verify()
674
675 def verify(self):
676 super().verify()

Callers

nothing calls this directly

Calls 3

verifyMethod · 0.95
add_memberMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected