Args: chat (:class:`~.chat.Chat`): Chat associated with this member. Keyword Args: name (str): Name of the member. alias (Optional[str]): Alternative name of the member, usually set by user. uid (:obj:`.ChatID` (str)):
(self, chat: 'Chat', *,
name: str = "", alias: Optional[str] = None, id: ChatID = ChatID(""),
uid: ChatID = ChatID(""),
vendor_specific: Dict[str, Any] = None, description: str = "",
middleware: Optional[Middleware] = None)
| 352 | SYSTEM_ID = ChatID("__system__") |
| 353 | |
| 354 | def __init__(self, chat: 'Chat', *, |
| 355 | name: str = "", alias: Optional[str] = None, id: ChatID = ChatID(""), |
| 356 | uid: ChatID = ChatID(""), |
| 357 | vendor_specific: Dict[str, Any] = None, description: str = "", |
| 358 | middleware: Optional[Middleware] = None): |
| 359 | """ |
| 360 | Args: |
| 361 | chat (:class:`~.chat.Chat`): Chat associated with this member. |
| 362 | |
| 363 | Keyword Args: |
| 364 | name (str): Name of the member. |
| 365 | alias (Optional[str]): Alternative name of the member, usually set by user. |
| 366 | uid (:obj:`.ChatID` (str)): |
| 367 | Unique ID of the member. This MUST be unique within the channel. |
| 368 | This ID can be the same with a private chat of the same person. |
| 369 | description (str): |
| 370 | A text description of the member, usually known as “bio”, |
| 371 | “description”, “summary” or “introduction” of the member. |
| 372 | middleware (:class:`.Middleware`): Initialize this chat as a part |
| 373 | of a middleware. |
| 374 | """ |
| 375 | name = name or translator.gettext("System") |
| 376 | uid = uid or id or self.SYSTEM_ID |
| 377 | super().__init__(chat, name=name, alias=alias, id=id, uid=uid, |
| 378 | vendor_specific=vendor_specific, description=description, |
| 379 | middleware=middleware) |
| 380 | |
| 381 | |
| 382 | class Chat(BaseChat, ABC): # lgtm [py/missing-equals] |