Telebot
4.7.0
Library for Telegram bot API
|
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. More...
#include <telebot-types.h>
Public Attributes | |
char * | type |
int | offset |
int | length |
char * | url |
telebot_user_t * | user |
char * | language |
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
char* telebot_message_entity::language |
Optional. For "pre" only, the programming language of the entity text
int telebot_message_entity::length |
Length of the entity in UTF-16 code units
int telebot_message_entity::offset |
Offset in UTF-16 code units to the start of the entity
char* telebot_message_entity::type |
Type of the entity. Can be mention (), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
char* telebot_message_entity::url |
Optional. For "text_link" only, url that will be opened after user taps on the text
telebot_user_t* telebot_message_entity::user |
Optional. For "text_mention" only, the mentioned user