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

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_tuser
 
char * language
 

Detailed Description

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Member Data Documentation

◆ language

char* telebot_message_entity::language

Optional. For "pre" only, the programming language of the entity text

◆ length

int telebot_message_entity::length

Length of the entity in UTF-16 code units

◆ offset

int telebot_message_entity::offset

Offset in UTF-16 code units to the start of the entity

◆ type

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)

◆ url

char* telebot_message_entity::url

Optional. For "text_link" only, url that will be opened after user taps on the text

◆ user

telebot_user_t* telebot_message_entity::user

Optional. For "text_mention" only, the mentioned user


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