ChatJoinRequest
Represents a join request sent to a chat
Represents a join request sent to a chat.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
chat | Chat | Always | Chat to which the request was sent |
from | User | Always | User that sent the join request |
user_chat_id | Integer | Always | 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 | Integer | Always | Date the request was sent in Unix time |
bio | String | Optional | Bio of the user |
invite_link | ChatInviteLink | Optional | Chat invite link that was used by the user to send the join request |
query_id | String | Optional | 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. |
Botlify Cloud Runtime
Credentials are auto-injected in
Credentials are auto-injected in
.env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.