Cppgram  1.0.0
Easy and modern C++14 Telegram Bot API wrapper
Classes | Enumerations
Types

Classes

class  Audio
 Audio message sent by a user. More...
 
class  CallbackQuery
 Data from an inline keyboard button pressed. More...
 
class  Chat
 Chat object. More...
 
class  ChosenInlineResult
 A inline query choosed by the user. More...
 
class  Contact
 Contact send by a user. More...
 
class  Document
 A document send by a user. More...
 
class  Emoji
 Contains static emoji. More...
 
class  InlineQuery
 Incoming inline query. More...
 
class  KeyboardButton
 Class for creating Inline keyboard json_button. More...
 
class  Location
 A location send by a user. More...
 
class  Message
 A message send by user. More...
 
class  MessageEntity
 Entity in the message. More...
 
class  PhotoSize
 A photo or thumbnail. More...
 
class  Sticker
 A sticker. More...
 
class  User
 User object. More...
 
class  Venue
 This object represents a venue. More...
 
class  Video
 A video sent by user. More...
 
class  Voice
 

Enumerations

enum  EChat : short { Private = 0, Group = 1, Supergroup = 2, Channel = 3 }
 Type of the chat. More...
 
enum  EMessageEntity : short {
  mention = 0, hashtag = 1, bot_command = 2, url = 3,
  email = 4, bold = 5, italic = 6, code = 7,
  pre = 8, text_link = 9, text_mention = 10
}
 Type of the entity. More...
 
enum  EParseMode : short { None = 0, HTML = 1, Markdown = 2 }
 Formattation options. More...
 
enum  EButton : short {
  URL = 0, CallbackData = 1, SwitchInlineQuery = 2, SwitchInlineQueryCurrentChat = 3,
  CallbackGame = 4
}
 Type of the inlineKeyboardButton to add in the reply markup. More...
 
enum  EServiceMessage : short {
  none, delete_chat_photo, group_chat_created, supergroup_chat_created,
  channel_chat_created
}
 Service message received. More...
 

Detailed Description

Enumeration Type Documentation

◆ EButton

enum EButton : short

Type of the inlineKeyboardButton to add in the reply markup.

(https://core.telegram.org/bots/api#inlinekeyboardbutton)

Enumerator
URL 

The button will contain a clicable url

CallbackData 

The button will contain data that will be sent back to the bot when pressed

SwitchInlineQuery 

Prompt the chat selection, open that chat and insert an inline query.

SwitchInlineQueryCurrentChat 

Pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot’s username will be inserted

CallbackGame 

Add description of the game that will be launched when the user presses the button

◆ EChat

enum EChat : short

Type of the chat.

Enumerator
Private 

Private chats with a user

Group 

Group chat (groups with less than 200 members and few admin tools)

Supergroup 

Group chat up to 5000 members, shared history, admin tools

Channel 

Channel

◆ EMessageEntity

enum EMessageEntity : short

Type of the entity.

(https://core.telegram.org/bots/api#messageentity)

Enumerator
mention 

@username

hashtag 

#hashatg

bot_command 

/start

url 

https://telegram.me

email 

email@email.com

bold 

Bold text

italic 

Italic text

code 

Monowidth string

pre 

Monowidth block

text_link 

Clickable text URLs

text_mention 

Mention for user without username

◆ EParseMode

enum EParseMode : short

Formattation options.

(https://core.telegram.org/bots/api#formatting-options)

Enumerator
None 

No formattation

HTML 

Formattation using html tags ()

Markdown 

Formattation using markdown (*_)

◆ EServiceMessage

enum EServiceMessage : short

Service message received.

Enumerator
none 

No service message.

delete_chat_photo 

The chat photo was deleted.

group_chat_created 

The group has been created.

supergroup_chat_created 

The supergroup has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.

channel_chat_created 

The channel has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.