StaticGramBot API

ChatInviteLink

Represents an invite link for a chat.

Поля

Creator of the link
True, if users joining the chat via the link need to be approved by chat administrators
is_primaryBoolean
True, if the link is primary
is_revokedBoolean
True, if the link is revoked
nameStringoptional
Invite link name
expire_dateIntegeroptional
Point in time (Unix timestamp) when the link will expire or has been expired
member_limitIntegeroptional
The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
Number of pending join requests created using this link
subscription_periodIntegeroptional
The number of seconds the subscription will be active for before the next payment
subscription_priceIntegeroptional
The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link

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

JSON
{
  "invite_link": "...",
  "creator": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  },
  "creates_join_request": true,
  "is_primary": true,
  "is_revoked": true
}

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

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