Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
Public Attributes | List of all members
telebot_chat Struct Reference

This object represents a chat. More...

#include <telebot-types.h>

Public Attributes

long long int id
 
char * type
 
char * title
 
char * username
 
char * first_name
 
char * last_name
 
bool is_forum
 
bool is_direct_messages
 
int accent_color_id
 
int max_reaction_count
 
struct telebot_chat_photophoto
 
char ** active_usernames
 
int count_active_usernames
 
struct telebot_birthdatebirthdate
 
struct telebot_business_introbusiness_intro
 
struct telebot_business_locationbusiness_location
 
struct telebot_business_opening_hoursbusiness_opening_hours
 
struct telebot_chatpersonal_chat
 
struct telebot_chatparent_chat
 
char * emoji_status_custom_emoji_id
 
long emoji_status_expiration_date
 
char * bio
 
bool has_private_forwards
 
bool has_restricted_voice_and_video_messages
 
bool join_to_send_messages
 
bool join_by_request
 
char * description
 
char * invite_link
 
struct telebot_messagepinned_message
 
struct telebot_chat_permissionspermissions
 
int slow_mode_delay
 
int unrestrict_boost_count
 
int message_auto_delete_time
 
bool has_aggressive_anti_spam_enabled
 
bool has_hidden_members
 
bool has_protected_content
 
bool has_visible_history
 
char * sticker_set_name
 
bool can_set_sticker_set
 
char * custom_emoji_sticker_set_name
 
long long int linked_chat_id
 
struct telebot_chat_locationlocation
 

Detailed Description

This object represents a chat.

Member Data Documentation

◆ accent_color_id

int telebot_chat::accent_color_id

Optional. Identifier of the accent color for the chat name and backgrounds.

◆ active_usernames

char** telebot_chat::active_usernames

Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat.

◆ bio

char* telebot_chat::bio

Optional. Bio of the other party in a private chat. Returned only in getChat.

◆ birthdate

struct telebot_birthdate* telebot_chat::birthdate

Optional. For private chats, the date of birth of the user.

◆ business_intro

struct telebot_business_intro* telebot_chat::business_intro

Optional. For private chats with business accounts, the intro of the business.

◆ business_location

struct telebot_business_location* telebot_chat::business_location

Optional. For private chats with business accounts, the location of the business.

◆ business_opening_hours

struct telebot_business_opening_hours* telebot_chat::business_opening_hours

Optional. For private chats with business accounts, the opening hours of the business.

◆ can_set_sticker_set

bool telebot_chat::can_set_sticker_set

Optional. True, if the bot can change the group sticker set. Returned only in getChat.

◆ custom_emoji_sticker_set_name

char* telebot_chat::custom_emoji_sticker_set_name

Optional. For supergroups, the name of the group's custom emoji sticker set.

◆ description

char* telebot_chat::description

Optional. Description, for supergroups and channel chats. Returned only in getChat.

◆ emoji_status_custom_emoji_id

char* telebot_chat::emoji_status_custom_emoji_id

Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat.

◆ emoji_status_expiration_date

long telebot_chat::emoji_status_expiration_date

Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any.

◆ first_name

char* telebot_chat::first_name

Optional. First name of the other party in a private chat.

◆ has_aggressive_anti_spam_enabled

bool telebot_chat::has_aggressive_anti_spam_enabled

Optional. True, if aggressive anti-spam checks are enabled in the supergroup.

◆ has_hidden_members

bool telebot_chat::has_hidden_members

Optional. True, if non-administrators can only get the list of bots and administrators in the chat.

◆ has_private_forwards

bool telebot_chat::has_private_forwards

Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.

◆ has_protected_content

bool telebot_chat::has_protected_content

Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.

◆ has_restricted_voice_and_video_messages

bool telebot_chat::has_restricted_voice_and_video_messages

Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat.

◆ has_visible_history

bool telebot_chat::has_visible_history

Optional. True, if new chat members will have access to old messages.

◆ id

long long int telebot_chat::id

Unique identifier for this chat, it may be greater than 32 bits.

◆ invite_link

char* telebot_chat::invite_link

Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.

◆ is_direct_messages

bool telebot_chat::is_direct_messages

Optional. True, if the chat is the direct messages chat of a channel.

◆ is_forum

bool telebot_chat::is_forum

Optional. True, if the supergroup chat is a forum (has topics enabled).

◆ join_by_request

bool telebot_chat::join_by_request

Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.

◆ join_to_send_messages

bool telebot_chat::join_to_send_messages

Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat.

◆ last_name

char* telebot_chat::last_name

Optional. Last name of the other party in a private chat.

◆ linked_chat_id

long long int telebot_chat::linked_chat_id

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. Returned only in getChat.

◆ location

struct telebot_chat_location* telebot_chat::location

Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.

◆ max_reaction_count

int telebot_chat::max_reaction_count

Optional. The maximum number of reactions that can be set on a message in the chat.

◆ message_auto_delete_time

int telebot_chat::message_auto_delete_time

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.

◆ parent_chat

struct telebot_chat* telebot_chat::parent_chat

Optional. Information about the corresponding channel chat; for direct messages chats only.

◆ permissions

struct telebot_chat_permissions* telebot_chat::permissions

Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.

◆ personal_chat

struct telebot_chat* telebot_chat::personal_chat

Optional. For private chats, the personal channel of the user.

◆ photo

struct telebot_chat_photo* telebot_chat::photo

Optional. Chat photo. Returned only in getChat.

◆ pinned_message

struct telebot_message* telebot_chat::pinned_message

Optional. The most recent pinned message (by sending date). Returned only in getChat.

◆ slow_mode_delay

int telebot_chat::slow_mode_delay

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.

◆ sticker_set_name

char* telebot_chat::sticker_set_name

Optional. For supergroups, name of group sticker set. Returned only in getChat.

◆ title

char* telebot_chat::title

Optional. Title, for supergroups, channels and group chats.

◆ type

char* telebot_chat::type

Type of chat, can be either "private", or "group", "supergroup", or "channel".

◆ unrestrict_boost_count

int telebot_chat::unrestrict_boost_count

Optional. For supergroups, the minimum number of boosts that a non-administrator user needs.

◆ username

char* telebot_chat::username

Optional. Username, for private chats, supergroups and channels if available.


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