ChatInviteLink

Raw MD
Represents an invite link for a chat

Represents an invite link for a chat.

Fields

FieldTypeRequiredDescription
invite_linkStringAlwaysThe invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".
creatorUserAlwaysCreator of the link
creates_join_requestBooleanAlwaysTrue, if users joining the chat via the link need to be approved by chat administrators
is_primaryBooleanAlwaysTrue, if the link is primary
is_revokedBooleanAlwaysTrue, if the link is revoked
nameStringOptionalInvite link name
expire_dateIntegerOptionalPoint in time (Unix timestamp) when the link will expire or has been expired
member_limitIntegerOptionalThe maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
pending_join_request_countIntegerOptionalNumber of pending join requests created using this link
subscription_periodIntegerOptionalThe number of seconds the subscription will be active for before the next payment
subscription_priceIntegerOptionalThe 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
Botlify Cloud Runtime
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.