Class: TD::Types::ChatInviteLink

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

Overview

Contains a chat invite link.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#creator_user_idInteger

User identifier of an administrator created the link.

Returns:

  • (Integer)

    the current value of creator_user_id



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def creator_user_id
  @creator_user_id
end

#dateInteger

Point in time (Unix timestamp) when the link was created.

Returns:

  • (Integer)

    the current value of date



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def date
  @date
end

#edit_dateInteger

Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.

Returns:

  • (Integer)

    the current value of edit_date



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def edit_date
  @edit_date
end

#expire_dateInteger

Point in time (Unix timestamp) when the link will expire; 0 if never.

Returns:

  • (Integer)

    the current value of expire_date



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def expire_date
  @expire_date
end

Chat invite link.

Returns:

  • (TD::Types::String)

    the current value of invite_link



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def invite_link
  @invite_link
end

#is_primaryBoolean

True, if the link is primary. Primary invite link can’t have expire date or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time.

Returns:

  • (Boolean)

    the current value of is_primary



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def is_primary
  @is_primary
end

#is_revokedBoolean

True, if the link was revoked.

Returns:

  • (Boolean)

    the current value of is_revoked



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def is_revoked
  @is_revoked
end

#member_countInteger

Number of chat members, which joined the chat using the link.

Returns:

  • (Integer)

    the current value of member_count



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def member_count
  @member_count
end

#member_limitInteger

The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.

Returns:

  • (Integer)

    the current value of member_limit



16
17
18
# File 'lib/tdlib/types/chat_invite_link.rb', line 16

def member_limit
  @member_limit
end