Telebot  4.7.0
Library for Telegram bot API
Public Attributes | List of all members
telebot_chat_member Struct Reference

This object contains information about one member of a chat. More...

#include <telebot-types.h>

Public Attributes

struct telebot_useruser
 
char * status
 
char * custom_title
 
long until_date
 
bool can_be_edited
 
bool can_post_messages
 
bool can_edit_messages
 
bool can_delete_messages
 
bool can_restrict_members
 
bool can_promote_members
 
bool can_change_info
 
bool can_invite_users
 
bool can_pin_messages
 
bool is_member
 
bool can_send_messages
 
bool can_send_media_messages
 
bool can_send_polls
 
bool can_send_other_messages
 
bool can_add_web_page_previews
 

Detailed Description

This object contains information about one member of a chat.

Member Data Documentation

◆ can_add_web_page_previews

bool telebot_chat_member::can_add_web_page_previews

Optional. Restricted only. True, if the user is allowed to add web page previews to their messages

◆ can_be_edited

bool telebot_chat_member::can_be_edited

Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user.

◆ can_change_info

bool telebot_chat_member::can_change_info

Optional. Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings.

◆ can_delete_messages

bool telebot_chat_member::can_delete_messages

Optional. Administrators only. True, if the administrator can delete messages of other users.

◆ can_edit_messages

bool telebot_chat_member::can_edit_messages

Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only.

◆ can_invite_users

bool telebot_chat_member::can_invite_users

Optional. Administrators and restricted only. True, if the user is allowed to invite new users to the chat.

◆ can_pin_messages

bool telebot_chat_member::can_pin_messages

Optional. Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only.

◆ can_post_messages

bool telebot_chat_member::can_post_messages

Optional. Administrators only. True, if the administrator can post in the channel; channels only.

◆ can_promote_members

bool telebot_chat_member::can_promote_members

Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).

◆ can_restrict_members

bool telebot_chat_member::can_restrict_members

Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members.

◆ can_send_media_messages

bool telebot_chat_member::can_send_media_messages

Optional. Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes

◆ can_send_messages

bool telebot_chat_member::can_send_messages

Optional. Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues

◆ can_send_other_messages

bool telebot_chat_member::can_send_other_messages

Optional. Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots

◆ can_send_polls

bool telebot_chat_member::can_send_polls

Optional. Restricted only. True, if the user is allowed to send polls.

◆ custom_title

char* telebot_chat_member::custom_title

Optional. Owner and administrators only. Custom title for this user.

◆ is_member

bool telebot_chat_member::is_member

Optional. Restricted only. True, if the user is a member of the chat at the moment of the request

◆ status

char* telebot_chat_member::status

The member's status in the chat. Can be "creator", "administrator"”, "member", "restricted", "left" or "kicked".

◆ until_date

long telebot_chat_member::until_date

Optional. Restricted and kicked only. Date when restrictions will be lifted for this user; unix time.

◆ user

struct telebot_user* telebot_chat_member::user

Information about the user.


The documentation for this struct was generated from the following file: