Class: TD::Types::ChatMember

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

Overview

A user with information about joining/leaving a 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 a chat member.

Returns:



11
12
13
# File 'lib/tdlib/types/chat_member.rb', line 11

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



11
12
13
# File 'lib/tdlib/types/chat_member.rb', line 11

def inviter_user_id
  @inviter_user_id
end

#joined_chat_dateInteger

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

Returns:

  • (Integer)

    the current value of joined_chat_date



11
12
13
# File 'lib/tdlib/types/chat_member.rb', line 11

def joined_chat_date
  @joined_chat_date
end

#statusTD::Types::ChatMemberStatus

Status of the member in the chat.

Returns:



11
12
13
# File 'lib/tdlib/types/chat_member.rb', line 11

def status
  @status
end

#user_idInteger

User identifier of the chat member.

Returns:

  • (Integer)

    the current value of user_id



11
12
13
# File 'lib/tdlib/types/chat_member.rb', line 11

def user_id
  @user_id
end