Class: TD::Types::ChatMember

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

Overview

Describes a user or a chat as a member of another chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#inviter_user_idInteger

Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown.

Returns:

  • (Integer)

    the current value of inviter_user_id



13
14
15
# File 'lib/tdlib/types/chat_member.rb', line 13

def inviter_user_id
  @inviter_user_id
end

#joined_chat_dateInteger

Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat.

Returns:

  • (Integer)

    the current value of joined_chat_date



13
14
15
# File 'lib/tdlib/types/chat_member.rb', line 13

def joined_chat_date
  @joined_chat_date
end

#member_idTD::Types::MessageSender

Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels.

Returns:



13
14
15
# File 'lib/tdlib/types/chat_member.rb', line 13

def member_id
  @member_id
end

#statusTD::Types::ChatMemberStatus

Status of the member in the chat.

Returns:



13
14
15
# File 'lib/tdlib/types/chat_member.rb', line 13

def status
  @status
end