MadelineProto/docs/TD_docs/constructors/chatMember.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.4 KiB

title description
chatMember User with information about its chat joining/kicking

Constructor: chatMember

Back to constructors index

User with information about its chat joining/kicking

Attributes:

Name Type Required Description
user_id int Yes User identifier of the chat member
inviter_user_id int Yes Identifier of a user invited this member to/kicked this member from the chat, 0 if unknown
join_date int Yes Date the user has joined a chat, unix time
status ChatMemberStatus Yes Status of the member in the chat
bot_info botInfo Yes Information about bot if user is a bot, nullable. Can be null even for bot if bot is not a chat member

Type: ChatMember

Example:

$chatMember = ['_' => 'chatMember', 'user_id' => int, 'inviter_user_id' => int, 'join_date' => int, 'status' => ChatMemberStatus, 'bot_info' => botInfo];

PWRTelegram json-encoded version:

{"_": "chatMember", "user_id": int, "inviter_user_id": int, "join_date": int, "status": ChatMemberStatus, "bot_info": botInfo}

Or, if you're into Lua:

chatMember={_='chatMember', user_id=int, inviter_user_id=int, join_date=int, status=ChatMemberStatus, bot_info=botInfo}