class

Tourmaline::ChatInviteLink

Inherits JSON::Serializable < Reference < Object

Represents an invite link for a chat.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

creates_join_request=(creates_join_request : Bool)

True, if users joining the chat via the link need to be approved by chat administrators

Source
creates_join_request?

True, if users joining the chat via the link need to be approved by chat administrators

Source
creator

Creator of the link

Source
creator=(creator : Tourmaline::User)

Creator of the link

Source
expire_date

Optional. Point in time (Unix timestamp) when the link will expire or has been expired

Source
expire_date=(expire_date : Time | Nil)

Optional. Point in time (Unix timestamp) when the link will expire or has been expired

Source
is_primary=(is_primary : Bool)

True, if the link is primary

Source
is_primary?

True, if the link is primary

Source
is_revoked=(is_revoked : Bool)

True, if the link is revoked

Source
is_revoked?

True, if the link is revoked

Source
member_limit

Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

Source
member_limit=(member_limit : Int32 | Int64 | Nil)

Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

Source
name

Optional. Invite link name

Source
name=(name : String | Nil)

Optional. Invite link name

Source
pending_join_request_count

Optional. Number of pending join requests created using this link

Source
pending_join_request_count=(pending_join_request_count : Int32 | Int64 | Nil)

Optional. Number of pending join requests created using this link

Source
subscription_period

Optional. The number of seconds the subscription will be active for before the next payment

Source
subscription_period=(subscription_period : Int32 | Int64 | Nil)

Optional. The number of seconds the subscription will be active for before the next payment

Source
subscription_price

Optional. 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

Source
subscription_price=(subscription_price : Int32 | Int64 | Nil)

Optional. 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

Source