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

This object represents a Telegram user or bot. More...

#include <telebot-types.h>

Public Attributes

long long int id
 
bool is_bot
 
char * first_name
 
char * last_name
 
char * username
 
char * language_code
 
bool is_premium
 
bool added_to_attachment_menu
 
bool can_join_groups
 
bool can_read_all_group_messages
 
bool supports_inline_queries
 
bool can_connect_to_business
 
bool has_main_web_app
 
bool has_topics_enabled
 
bool allows_users_to_create_topics
 

Detailed Description

This object represents a Telegram user or bot.

Member Data Documentation

◆ added_to_attachment_menu

bool telebot_user::added_to_attachment_menu

Optional. True, if this user added the bot to the attachment menu.

◆ allows_users_to_create_topics

bool telebot_user::allows_users_to_create_topics

Optional. True, if the bot allows users to create and delete topics in private chats. Returned only in getMe.

◆ can_connect_to_business

bool telebot_user::can_connect_to_business

Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.

◆ can_join_groups

bool telebot_user::can_join_groups

Optional. Optional. True, if the bot can be invited to groups. Returned only in getMe.

◆ can_read_all_group_messages

bool telebot_user::can_read_all_group_messages

Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.

◆ first_name

char* telebot_user::first_name

User's or bot's first name.

◆ has_main_web_app

bool telebot_user::has_main_web_app

Optional. True, if the bot has a main Web App. Returned only in getMe.

◆ has_topics_enabled

bool telebot_user::has_topics_enabled

Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.

◆ id

long long int telebot_user::id

Unique identifier for this user or bot.

◆ is_bot

bool telebot_user::is_bot

True, if this user is bot.

◆ is_premium

bool telebot_user::is_premium

Optional. True, if this user is a Telegram Premium user.

◆ language_code

char* telebot_user::language_code

Optional. IETF language tag of the user's language.

◆ last_name

char* telebot_user::last_name

Optional. User's or bot's last name.

◆ supports_inline_queries

bool telebot_user::supports_inline_queries

Optional. True, if the bot supports inline queries. Returned only in getMe.

◆ username

char* telebot_user::username

Optional. User's or bot's username.


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