Class: TD::Types::ChatInviteLinkInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/chat_invite_link_info.rb

Overview

Contains information about a chat invite link.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#accent_color_idInteger

Identifier of the accent color for chat title and background of chat photo.

Returns:

  • (Integer)

    the current value of accent_color_id



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def accent_color_id
  @accent_color_id
end

#accessible_forInteger

If non-zero, the amount of time for which read access to the chat will remain available, in seconds.

Returns:

  • (Integer)

    the current value of accessible_for



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def accessible_for
  @accessible_for
end

#chat_idInteger

Chat identifier of the invite link; 0 if the user has no access to the chat before joining.

Returns:

  • (Integer)

    the current value of chat_id



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def chat_id
  @chat_id
end

#creates_join_requestBoolean

True, if the link only creates join request.

Returns:

  • (Boolean)

    the current value of creates_join_request



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def creates_join_request
  @creates_join_request
end

#descriptionTD::Types::String

Chat description.

Returns:

  • (TD::Types::String)

    the current value of description



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def description
  @description
end

#is_fakeBoolean

True, if many users reported this chat as a fake account.

Returns:

  • (Boolean)

    the current value of is_fake



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def is_fake
  @is_fake
end

#is_publicBoolean

True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup.

Returns:

  • (Boolean)

    the current value of is_public



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def is_public
  @is_public
end

#is_scamBoolean

True, if many users reported this chat as a scam.

Returns:

  • (Boolean)

    the current value of is_scam



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def is_scam
  @is_scam
end

#is_verifiedBoolean

True, if the chat is verified.

Returns:

  • (Boolean)

    the current value of is_verified



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def is_verified
  @is_verified
end

#member_countInteger

Number of members in the chat.

Returns:

  • (Integer)

    the current value of member_count



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def member_count
  @member_count
end

#member_user_idsArray<Integer>

User identifiers of some chat members that may be known to the current user.

Returns:

  • (Array<Integer>)

    the current value of member_user_ids



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def member_user_ids
  @member_user_ids
end

#photoTD::Types::ChatPhotoInfo?

Chat photo; may be null.

Returns:



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def photo
  @photo
end

#subscription_infoTD::Types::ChatInviteLinkSubscriptionInfo?

Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn’t require subscription.

Returns:



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def subscription_info
  @subscription_info
end

#titleTD::Types::String

Title of the chat.

Returns:

  • (TD::Types::String)

    the current value of title



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def title
  @title
end

#typeTD::Types::InviteLinkChatType

Type of the chat.

Returns:



22
23
24
# File 'lib/tdlib/types/chat_invite_link_info.rb', line 22

def type
  @type
end