Make a system member for this chat. Useful for slave channels and middlewares to create an author of a message from a system member when the “system” member is NOT intended to become a member of the chat. Keyword Args: name (str): Name of the member.
(self, name: str = "", alias: Optional[str] = None, id: ChatID = ChatID(""),
uid: ChatID = ChatID(""),
vendor_specific: Dict[str, Any] = None, description: str = "",
middleware: Optional[Middleware] = None)
| 540 | return member |
| 541 | |
| 542 | def make_system_member(self, name: str = "", alias: Optional[str] = None, id: ChatID = ChatID(""), |
| 543 | uid: ChatID = ChatID(""), |
| 544 | vendor_specific: Dict[str, Any] = None, description: str = "", |
| 545 | middleware: Optional[Middleware] = None) -> SystemChatMember: |
| 546 | """Make a system member for this chat. |
| 547 | |
| 548 | Useful for slave channels and middlewares to create an author of a message from |
| 549 | a system member when the “system” member is NOT intended to become a member of |
| 550 | the chat. |
| 551 | |
| 552 | Keyword Args: |
| 553 | name (str): Name of the member. |
| 554 | uid: ID of the member. |
| 555 | alias (Optional[str]): Alias of the member. |
| 556 | vendor_specific (Dict[str, Any]): Any vendor specific attributes. |
| 557 | description (str): |
| 558 | A text description of the chat, usually known as “bio”, |
| 559 | “description”, “purpose”, or “topic” of the chat. |
| 560 | middleware (Optional[:class:`.Middleware`]): Initialize this chat as a part |
| 561 | of a middleware. |
| 562 | """ |
| 563 | return SystemChatMember(self, name=name, alias=alias, id=id, uid=uid, |
| 564 | vendor_specific=vendor_specific, description=description, |
| 565 | middleware=middleware) |
| 566 | |
| 567 | def add_system_member(self, name: str = "", alias: Optional[str] = None, id: ChatID = ChatID(""), |
| 568 | uid: ChatID = ChatID(""), |
no test coverage detected