Class: TD::Types::Update::ChatMember

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/chat_member.rb

Overview

User rights changed in a chat; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#actor_user_idInteger

Identifier of the user, changing the rights.

Returns:

  • (Integer)

    the current value of actor_user_id



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def actor_user_id
  @actor_user_id
end

#chat_idInteger

Chat identifier.

Returns:

  • (Integer)

    the current value of chat_id



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def chat_id
  @chat_id
end

#dateInteger

Point in time (Unix timestamp) when the user rights were changed.

Returns:

  • (Integer)

    the current value of date



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def date
  @date
end

If user has joined the chat using an invite link, the invite link; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def invite_link
  @invite_link
end

#new_chat_memberTD::Types::ChatMember

New chat member.

Returns:



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def new_chat_member
  @new_chat_member
end

#old_chat_memberTD::Types::ChatMember

Previous chat member.

Returns:



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def old_chat_member
  @old_chat_member
end

True, if the user has joined the chat using an invite link for a chat folder.

Returns:

  • (Boolean)

    the current value of via_chat_folder_invite_link



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def via_chat_folder_invite_link
  @via_chat_folder_invite_link
end

#via_join_requestBoolean

True, if the user has joined the chat after sending a join request and being approved by an administrator.

Returns:

  • (Boolean)

    the current value of via_join_request



15
16
17
# File 'lib/tdlib/types/update/chat_member.rb', line 15

def via_join_request
  @via_join_request
end