peyk.platforms.telegram.types.chat_join_request¶
Classes
|
Represents a join request sent to a chat. |
- class peyk.platforms.telegram.types.chat_join_request.ChatJoinRequest(chat: Chat, from_: User | None = None, user_chat_id: int | None = None, date: int | None = None, bio: str | None = None, invite_link: ChatInviteLink | None = None, query_id: str | None = None, bot: 'Bot[object]' | None = None)[source]¶
Bases:
objectRepresents a join request sent to a chat.
- Variables:
chat (Chat) – Chat to which the request was sent
from – User that sent the join request
user_chat_id (Optional[int]) – Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
date (Optional[int]) – Date the request was sent in Unix time
bio (Optional[str]) – Bio of the user
invite_link (Optional[ChatInviteLink]) – Chat invite link that was used by the user to send the join request
query_id (Optional[str]) – Identifier of the join request query; for bots assigned to process join requests only. If present, then the bot must call sendChatJoinRequestWebApp or directly call answerChatJoinRequestQuery within 10 seconds.
- user_chat_id: int | None = None¶
- date: int | None = None¶
- bio: str | None = None¶
- invite_link: ChatInviteLink | None = None¶
- query_id: str | None = None¶
- bot: 'Bot[object]' | None = None¶
- classmethod from_dict(data: dict | None) ChatJoinRequest | None[source]¶
Parse a Telegram API mapping into this type.
- Parameters:
data – Raw Telegram API mapping, or
None.- Returns:
Parsed type instance, or
NonewhendataisNone.