This object represents a chat member user returned in getChatMember, banChatMember, unbanChatMember, removeChatMember, and when a user joins or leaves the chat.
Field
Type
Required
Description
user
Yes
Unique identifier for user member.
chat
Yes
Unique identifier to which a member belongs or used to belong.
type
String
Yes
type: ā€˜memberā€™ if the user is a member. ā€˜adminā€™ if the user is an admin.
member_since
Timestamp
Optional
Unix Epoch timestamp.
status
String
Yes
status: ā€˜activeā€™: when the user is an active member in the chat. ā€™deletedā€™: when the user has been deleted from chat. ā€™bannedā€™: when the user has been banned from chat. ā€™leftā€™ : when the user leave the chat.
tags
Array of String
Optional
tags: list of tags ids if user have tags
account_type
String
Optional: You must have specific privilege from Web (Get User Login ID)
Account type: user signup method (email, msisdn).
msisdn
String
Optional
Get email or msisdn.

Object

json
{ "chatMember": { "view": 1, "chat": { "id": "90090684265189649", "type": "Channel" }, "type": "Member", "user": { "id": "24410036587411985" }, "tags": ["1", "2"], "status": "Active" } }
Share