StaticGramBot API

ChatJoinRequest

Represents a join request sent to a chat.

Поля

Chat to which the request was sent
User that sent the join request
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.
dateInteger
Date the request was sent in Unix time
bioStringoptional
Bio of the user
query_idStringoptional
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.

Минимальный JSON

JSON
{
  "chat": {
    "id": 1780243423,
    "type": "private"
  },
  "from": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  },
  "user_chat_id": 1,
  "date": 1790000000
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top