|
Telebot 9.4
Library for Telegram bot API
|
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 |
This object represents a Telegram user or bot.
| bool telebot_user::added_to_attachment_menu |
Optional. True, if this user added the bot to the attachment menu.
| 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.
| 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.
| bool telebot_user::can_join_groups |
Optional. Optional. True, if the bot can be invited to groups. Returned only in getMe.
| bool telebot_user::can_read_all_group_messages |
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
| char* telebot_user::first_name |
User's or bot's first name.
| bool telebot_user::has_main_web_app |
Optional. True, if the bot has a main Web App. Returned only in getMe.
| bool telebot_user::has_topics_enabled |
Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
| long long int telebot_user::id |
Unique identifier for this user or bot.
| bool telebot_user::is_bot |
True, if this user is bot.
| bool telebot_user::is_premium |
Optional. True, if this user is a Telegram Premium user.
| char* telebot_user::language_code |
Optional. IETF language tag of the user's language.
| char* telebot_user::last_name |
Optional. User's or bot's last name.
| bool telebot_user::supports_inline_queries |
Optional. True, if the bot supports inline queries. Returned only in getMe.
| char* telebot_user::username |
Optional. User's or bot's username.