telegram.chatmember module

This module contains an object that represents a Telegram ChatMember.

class telegram.chatmember.ChatMember(user, status, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram ChatMember.

user

telegram.User – Information about the user.

status

str – The member’s status in the chat. Can be ‘creator’, ‘administrator’, ‘member’, ‘left’ or ‘kicked’.

Parameters:
  • user (telegram.User) –
  • status (str) –
  • **kwargs (dict) – Arbitrary keyword arguments.
ADMINISTRATOR = 'administrator'
CREATOR = 'creator'
KICKED = 'kicked'
LEFT = 'left'
MEMBER = 'member'
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.ChatMember