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