Class: TD::Types::ChatMember

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

Overview

Information about 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

#bot_infoTD::Types::BotInfo?

If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not the chat member.

Returns:



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

def bot_info
  @bot_info
end

#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



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

def inviter_user_id
  @inviter_user_id
end

#joined_chat_dateInteger

Point in time (Unix timestamp) when the user joined the chat.

Returns:

  • (Integer)

    the current value of joined_chat_date



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

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:



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

def member_id
  @member_id
end

#statusTD::Types::ChatMemberStatus

Status of the member in the chat.

Returns:



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

def status
  @status
end