class Telegram::API::ChatInviteLink

Overview

Represents an invite link for a chat.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(invite_link : String, creator : User, creates_join_request : Bool, is_primary : Bool, is_revoked : Bool, name : String | Nil = nil, expire_date : Int32 | Nil = nil, member_limit : Int32 | Nil = nil, pending_join_request_count : Int32 | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

Represents an invite link for a chat.


[View source]

Instance Method Detail

def creates_join_request : Bool #

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


[View source]
def creates_join_request=(creates_join_request : Bool) #

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


[View source]
def creator : User #

Creator of the link


[View source]
def creator=(creator : User) #

Creator of the link


[View source]
def expire_date : Int32 | Nil #

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


[View source]
def expire_date=(expire_date : Int32 | Nil) #

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


[View source]
def invite_link : String #

The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".


[View source]
def invite_link=(invite_link : String) #

The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".


[View source]
def is_primary : Bool #

True, if the link is primary


[View source]
def is_primary=(is_primary : Bool) #

True, if the link is primary


[View source]
def is_revoked : Bool #

True, if the link is revoked


[View source]
def is_revoked=(is_revoked : Bool) #

True, if the link is revoked


[View source]
def member_limit : Int32 | Nil #

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


[View source]
def member_limit=(member_limit : Int32 | Nil) #

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


[View source]
def name : String | Nil #

Optional. Invite link name


[View source]
def name=(name : String | Nil) #

Optional. Invite link name


[View source]
def pending_join_request_count : Int32 | Nil #

Optional. Number of pending join requests created using this link


[View source]
def pending_join_request_count=(pending_join_request_count : Int32 | Nil) #

Optional. Number of pending join requests created using this link


[View source]