From b22c20c4db8c35eaee99075d055f74697c5805b8 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:33:59 +0300 Subject: Docs --- ...ass_tg_bot_1_1_response_parameters-members.html | 103 + ...class_tg_bot_1_1_event_broadcaster-members.html | 111 + docs/d9/d5a/class_tg_bot_1_1_audio-members.html | 107 + docs/d9/d69/class_tg_bot_1_1_api.html | 2201 ++++++++++++++++++++ docs/d9/d69/class_tg_bot_1_1_api.js | 42 + docs/d9/d70/class_tg_bot_1_1_keyboard_button.html | 195 ++ docs/d9/d70/class_tg_bot_1_1_keyboard_button.js | 7 + ...class_tg_bot_1_1_inline_query_result_voice.html | 270 +++ .../class_tg_bot_1_1_inline_query_result_voice.js | 7 + .../class_tg_bot_1_1_inline_query_result_voice.png | Bin 0 -> 768 bytes docs/d9/d86/class_tg_bot_1_1_url.html | 235 +++ docs/d9/d86/class_tg_bot_1_1_url.js | 9 + docs/d9/dac/_location_8h.html | 115 + docs/d9/dac/_location_8h_source.html | 103 + ...ot_1_1_inline_query_result_contact-members.html | 117 ++ docs/d9/dd2/group__net.html | 116 ++ docs/d9/dd2/group__net.js | 48 + docs/d9/dd7/_url_8h.html | 115 + docs/d9/dd7/_url_8h_source.html | 106 + ..._tg_bot_1_1_input_location_message_content.html | 259 +++ ...ss_tg_bot_1_1_input_location_message_content.js | 8 + ...s_tg_bot_1_1_input_location_message_content.png | Bin 0 -> 857 bytes 22 files changed, 4274 insertions(+) create mode 100644 docs/d9/d00/class_tg_bot_1_1_response_parameters-members.html create mode 100644 docs/d9/d27/class_tg_bot_1_1_event_broadcaster-members.html create mode 100644 docs/d9/d5a/class_tg_bot_1_1_audio-members.html create mode 100644 docs/d9/d69/class_tg_bot_1_1_api.html create mode 100644 docs/d9/d69/class_tg_bot_1_1_api.js create mode 100644 docs/d9/d70/class_tg_bot_1_1_keyboard_button.html create mode 100644 docs/d9/d70/class_tg_bot_1_1_keyboard_button.js create mode 100644 docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.html create mode 100644 docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.js create mode 100644 docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.png create mode 100644 docs/d9/d86/class_tg_bot_1_1_url.html create mode 100644 docs/d9/d86/class_tg_bot_1_1_url.js create mode 100644 docs/d9/dac/_location_8h.html create mode 100644 docs/d9/dac/_location_8h_source.html create mode 100644 docs/d9/db4/class_tg_bot_1_1_inline_query_result_contact-members.html create mode 100644 docs/d9/dd2/group__net.html create mode 100644 docs/d9/dd2/group__net.js create mode 100644 docs/d9/dd7/_url_8h.html create mode 100644 docs/d9/dd7/_url_8h_source.html create mode 100644 docs/d9/dec/class_tg_bot_1_1_input_location_message_content.html create mode 100644 docs/d9/dec/class_tg_bot_1_1_input_location_message_content.js create mode 100644 docs/d9/dec/class_tg_bot_1_1_input_location_message_content.png (limited to 'docs/d9') diff --git a/docs/d9/d00/class_tg_bot_1_1_response_parameters-members.html b/docs/d9/d00/class_tg_bot_1_1_response_parameters-members.html new file mode 100644 index 0000000..e526cc1 --- /dev/null +++ b/docs/d9/d00/class_tg_bot_1_1_response_parameters-members.html @@ -0,0 +1,103 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::ResponseParameters Member List
+
+
+ +

This is the complete list of members for TgBot::ResponseParameters, including all inherited members.

+ + + + +
migrateToChatIdTgBot::ResponseParameters
Ptr typedefTgBot::ResponseParameters
retryAfterTgBot::ResponseParameters
+
+ + + + diff --git a/docs/d9/d27/class_tg_bot_1_1_event_broadcaster-members.html b/docs/d9/d27/class_tg_bot_1_1_event_broadcaster-members.html new file mode 100644 index 0000000..4d655ee --- /dev/null +++ b/docs/d9/d27/class_tg_bot_1_1_event_broadcaster-members.html @@ -0,0 +1,111 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::EventBroadcaster Member List
+
+
+ +

This is the complete list of members for TgBot::EventBroadcaster, including all inherited members.

+ + + + + + + + + + + + +
CallbackQueryListener typedefTgBot::EventBroadcaster
ChosenInlineResultListener typedefTgBot::EventBroadcaster
InlineQueryListener typedefTgBot::EventBroadcaster
MessageListener typedefTgBot::EventBroadcaster
onAnyMessage(const MessageListener &listener)TgBot::EventBroadcasterinline
onCallbackQuery(const CallbackQueryListener &listener)TgBot::EventBroadcasterinline
onChosenInlineResult(const ChosenInlineResultListener &listener)TgBot::EventBroadcasterinline
onCommand(const std::string &commandName, const MessageListener &listener)TgBot::EventBroadcasterinline
onInlineQuery(const InlineQueryListener &listener)TgBot::EventBroadcasterinline
onNonCommandMessage(const MessageListener &listener)TgBot::EventBroadcasterinline
onUnknownCommand(const MessageListener &listener)TgBot::EventBroadcasterinline
+
+ + + + diff --git a/docs/d9/d5a/class_tg_bot_1_1_audio-members.html b/docs/d9/d5a/class_tg_bot_1_1_audio-members.html new file mode 100644 index 0000000..5c5ac8c --- /dev/null +++ b/docs/d9/d5a/class_tg_bot_1_1_audio-members.html @@ -0,0 +1,107 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::Audio Member List
+
+
+ +

This is the complete list of members for TgBot::Audio, including all inherited members.

+ + + + + + + + +
durationTgBot::Audio
fileIdTgBot::Audio
fileSizeTgBot::Audio
mimeTypeTgBot::Audio
performerTgBot::Audio
Ptr typedefTgBot::Audio
titleTgBot::Audio
+
+ + + + diff --git a/docs/d9/d69/class_tg_bot_1_1_api.html b/docs/d9/d69/class_tg_bot_1_1_api.html new file mode 100644 index 0000000..8df6680 --- /dev/null +++ b/docs/d9/d69/class_tg_bot_1_1_api.html @@ -0,0 +1,2201 @@ + + + + + + + +tgbot-cpp: TgBot::Api Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::Api Class Reference
+
+
+ +

#include <Api.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Api (const std::string &token)
 
User::Ptr getMe () const
 
Message::Ptr sendMessage (int64_t chatId, const std::string &text, bool disableWebPagePreview=false, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), const std::string &parseMode="", bool disableNotification=false) const
 
Message::Ptr forwardMessage (int64_t chatId, int64_t fromChatId, int32_t messageId, bool disableNotification=false) const
 
Message::Ptr sendPhoto (int64_t chatId, const InputFile::Ptr &photo, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendPhoto (int64_t chatId, const std::string &photoId, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendAudio (int64_t chatId, const InputFile::Ptr &audio, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendAudio (int64_t chatId, const std::string &audioId, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendDocument (int64_t chatId, const InputFile::Ptr &document, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendDocument (int64_t chatId, const std::string &documentId, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendSticker (int64_t chatId, const InputFile::Ptr &sticker, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendSticker (int64_t chatId, const std::string &stickerId, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendVideo (int64_t chatId, const InputFile::Ptr &video, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendVideo (int64_t chatId, const std::string &videoId, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendVoice (int64_t chatId, const InputFile::Ptr &voice, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendVoice (int64_t chatId, const std::string &voiceId, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendLocation (int64_t chatId, float latitude, float longitude, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
 
Message::Ptr sendVenue (int64_t chatId, float latitude, float longitude, std::string title, std::string address, std::string foursquareId="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr()) const
 
Message::Ptr sendContact (int64_t chatId, std::string phoneNumber, std::string firstName, std::string lastName="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr()) const
 
void sendChatAction (int64_t chatId, const std::string &action) const
 
UserProfilePhotos::Ptr getUserProfilePhotos (int32_t userId, int32_t offset=0, int32_t limit=100) const
 
File::Ptr getFile (int32_t fileId) const
 
bool leaveChat (int64_t chatId) const
 
Chat::Ptr getChat (int64_t chatId) const
 
std::vector< ChatMember::PtrgetChatAdministrators (int64_t chatId) const
 
int32_t getChatMembersCount (int64_t chatId) const
 
ChatMember::Ptr getChatMember (int64_t chatId, int32_t userId) const
 
bool answerCallbackQuery (const std::string &callbackQueryId, const std::string &text="", bool showAlert=false, const std::string &url="", int32_t cacheTime=0) const
 
Message::Ptr editMessageText (const std::string &text, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const std::string &parseMode="", bool disableWebPagePreview=false, const GenericReply::Ptr &replyMarkup=GenericReply::Ptr()) const
 
Message::Ptr editMessageCaption (int64_t chatId=0, int32_t messageId=0, const std::string &caption="", const std::string &inlineMessageId="", const GenericReply::Ptr &replyMarkup=GenericReply::Ptr()) const
 
Message::Ptr editMessageReplyMarkup (int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const GenericReply::Ptr &replyMarkup=GenericReply::Ptr()) const
 
std::vector< Update::PtrgetUpdates (int32_t offset=0, int32_t limit=100, int32_t timeout=0, const StringArrayPtr &allowedUpdates=nullptr) const
 
void setWebhook (const std::string &url="", const InputFile::Ptr &certificate=nullptr, int32_t maxConnection=40, const StringArrayPtr &allowedUpdates=nullptr) const
 
bool deleteWebhook () const
 
WebhookInfo::Ptr getWebhookInfo () const
 
bool answerInlineQuery (const std::string &inlineQueryId, const std::vector< InlineQueryResult::Ptr > &results, int32_t cacheTime=300, bool isPersonal=false, const std::string &nextOffset="", const std::string &switchPmText="", const std::string &switchPmParameter="") const
 
bool kickChatMember (int64_t chatId, int32_t userId) const
 
bool unbanChatMember (int64_t chatId, int32_t userId) const
 
+ + + +

+Friends

class Bot
 
+

Detailed Description

+

This class executes telegram api methods. Telegram docs: https://core.telegram.org/bots/api#available-methods

+ +

Definition at line 52 of file Api.h.

+

Constructor & Destructor Documentation

+ +

◆ Api()

+ +
+
+ + + + + + + + +
TgBot::Api::Api (const std::string & token)
+
+ +
+
+

Member Function Documentation

+ +

◆ answerCallbackQuery()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool TgBot::Api::answerCallbackQuery (const std::string & callbackQueryId,
const std::string & text = "",
bool showAlert = false,
const std::string & url = "",
int32_t cacheTime = 0 
) const
+
+

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.

Parameters
+ + + + + + +
callbackQueryIdUnique identifier for the query to be answered
textOptional Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
showAlertOptional If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
urlOptional URL that will be opened by the user's client. If you have created a Game and accepted the conditions via , specify the URL that opens your game – note that this will only work if the query comes from a callback_game button
cacheTimeOptional The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
+
+
+
Returns
True on success
+ +
+
+ +

◆ answerInlineQuery()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool TgBot::Api::answerInlineQuery (const std::string & inlineQueryId,
const std::vector< InlineQueryResult::Ptr > & results,
int32_t cacheTime = 300,
bool isPersonal = false,
const std::string & nextOffset = "",
const std::string & switchPmText = "",
const std::string & switchPmParameter = "" 
) const
+
+

Use this method to send answers to an inline query. No mode that 50 results per query are allowed.

Parameters
+ + + + + + + + +
inlineQueryIdUnique identifier for the answered query.
resultsArray of results for the inline query.
cacheTimeThe maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
isPersonalPass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.
nextOffsetPass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes.
switchPmTextIf passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter
switchPmParameterParameter for the start message sent to the bot when user presses the switch button
+
+
+
Returns
True on success
+ +
+
+ +

◆ deleteWebhook()

+ +
+
+ + + + + + + +
bool TgBot::Api::deleteWebhook () const
+
+

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters.

+ +
+
+ +

◆ editMessageCaption()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::editMessageCaption (int64_t chatId = 0,
int32_t messageId = 0,
const std::string & caption = "",
const std::string & inlineMessageId = "",
const GenericReply::PtrreplyMarkup = GenericReply::Ptr() 
) const
+
+

Use this method to edit captions of messages sent by the bot or via the bot (for inline bots).

Parameters
+ + + + + + +
chatIdOptional Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format )
messageIdOptional Required if inline_message_id is not specified. Identifier of the sent message
captionOptional New caption of the message
inlineMessageIdOptional Required if chat_id and message_id are not specified. Identifier of the inline message
replyMarkupOptional A JSON-serialized object for an inline keyboard.
+
+
+
Returns
Message object on success, otherwise nullptr
+ +
+
+ +

◆ editMessageReplyMarkup()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::editMessageReplyMarkup (int64_t chatId = 0,
int32_t messageId = 0,
const std::string & inlineMessageId = "",
const GenericReply::PtrreplyMarkup = GenericReply::Ptr() 
) const
+
+

Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots).

Parameters
+ + + + + +
chatIdOptional Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format )
messageIdOptional Required if inline_message_id is not specified. Identifier of the sent message
inlineMessageIdOptional Required if chat_id and message_id are not specified. Identifier of the inline message
replyMarkupOptional A JSON-serialized object for an inline keyboard.
+
+
+
Returns
Message object on success, otherwise nullptr
+ +
+
+ +

◆ editMessageText()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::editMessageText (const std::string & text,
int64_t chatId = 0,
int32_t messageId = 0,
const std::string & inlineMessageId = "",
const std::string & parseMode = "",
bool disableWebPagePreview = false,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr() 
) const
+
+

Use this method to edit text and game messages sent by the bot or via the bot (for inline bots)

Parameters
+ + + + + + + + +
textNew text of the message
chatIdOptional Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format )
messageIdOptional Required if inline_message_id is not specified. Identifier of the sent message
inlineMessageIdOptional Required if chat_id and message_id are not specified. Identifier of the inline message
parseModeOptional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
disableWebPagePreviewOptional Disables link previews for links in this message
replyMarkupOptional A JSON-serialized object for an inline keyboard.
+
+
+
Returns
Message object on success, otherwise nullptr
+ +
+
+ +

◆ forwardMessage()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::forwardMessage (int64_t chatId,
int64_t fromChatId,
int32_t messageId,
bool disableNotification = false 
) const
+
+

Use this method to forward messages of any kind.

Parameters
+ + + + + +
chatIdUnique identifier for the target chat.
fromChatIdUnique identifier for the chat where the original message was sent — User or GroupChat id.
messageIdUnique message identifier.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ getChat()

+ +
+
+ + + + + + + + +
Chat::Ptr TgBot::Api::getChat (int64_t chatId) const
+
+

Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.

Parameters
+ + +
chatIdUnique identifier for the target chat or username of the target supergroup or channel (in the format )
+
+
+
Returns
Chat object.
+ +
+
+ +

◆ getChatAdministrators()

+ +
+
+ + + + + + + + +
std::vector<ChatMember::Ptr> TgBot::Api::getChatAdministrators (int64_t chatId) const
+
+

Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

Parameters
+ + +
chatIdUnique identifier for the target chat or username of the target supergroup or channel (in the format )
+
+
+
Returns
ChatMember object.
+ +
+
+ +

◆ getChatMember()

+ +
+
+ + + + + + + + + + + + + + + + + + +
ChatMember::Ptr TgBot::Api::getChatMember (int64_t chatId,
int32_t userId 
) const
+
+

Use this method to get information about a member of a chat. Returns a ChatMember object on success.

Parameters
+ + + +
chatIdUnique identifier for the target chat or username of the target supergroup or channel (in the format )
userIdUnique identifier of the target user
+
+
+
Returns
ChatMember object.
+ +
+
+ +

◆ getChatMembersCount()

+ +
+
+ + + + + + + + +
int32_t TgBot::Api::getChatMembersCount (int64_t chatId) const
+
+

Use this method to get the number of members in a chat. Returns Int on success.

Parameters
+ + +
chatIdUnique identifier for the target chat or username of the target supergroup or channel (in the format )
+
+
+
Returns
Int.
+ +
+
+ +

◆ getFile()

+ +
+
+ + + + + + + + +
File::Ptr TgBot::Api::getFile (int32_t fileId) const
+
+

Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size.

Parameters
+ + +
fileIdFile identifier to get info about
+
+
+
Returns
A File object.
+ +
+
+ +

◆ getMe()

+ +
+
+ + + + + + + +
User::Ptr TgBot::Api::getMe () const
+
+

A simple method for testing your bot's auth token.

Returns
Basic information about the bot in form of a User object.
+ +
+
+ +

◆ getUpdates()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
std::vector<Update::Ptr> TgBot::Api::getUpdates (int32_t offset = 0,
int32_t limit = 100,
int32_t timeout = 0,
const StringArrayPtr & allowedUpdates = nullptr 
) const
+
+

Use this method to receive incoming updates using long polling. This method will not work if an outgoing webhook is set up. In order to avoid getting duplicate updates, recalculate offset after each server response.

Parameters
+ + + + + +
offsetOptional. Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id.
limitOptional. Limits the number of updates to be retrieved. Values between 1—100 are accepted. Defaults to 100.
timeoutOptional. Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling.
allowed_updatesOptional. List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous setting will be used.
+
+
+
Returns
An Array of Update objects
+ +
+
+ +

◆ getUserProfilePhotos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
UserProfilePhotos::Ptr TgBot::Api::getUserProfilePhotos (int32_t userId,
int32_t offset = 0,
int32_t limit = 100 
) const
+
+

Use this method to get a list of profile pictures for a user.

Parameters
+ + + + +
userIdUnique identifier of the target user.
offsetOptional. Sequential number of the first photo to be returned. By default, all photos are returned.
limitOptional. Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100.
+
+
+
Returns
A UserProfilePhotos object.
+ +
+
+ +

◆ getWebhookInfo()

+ +
+
+ + + + + + + +
WebhookInfo::Ptr TgBot::Api::getWebhookInfo () const
+
+

Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.

+ +
+
+ +

◆ kickChatMember()

+ +
+
+ + + + + + + + + + + + + + + + + + +
bool TgBot::Api::kickChatMember (int64_t chatId,
int32_t userId 
) const
+
+

Use this method to kick a user from a group or a supergroup.

Parameters
+ + + +
chatIdUnique identifier for the target group.
userIdUnique identifier of the target user.
+
+
+
Returns
True on success
+ +
+
+ +

◆ leaveChat()

+ +
+
+ + + + + + + + +
bool TgBot::Api::leaveChat (int64_t chatId) const
+
+

Use this method for your bot to leave a group, supergroup or channel.

Parameters
+ + +
chatIdUnique identifier for the target chat or username of the target supergroup or channel (in the format )
+
+
+
Returns
True on success
+ +
+
+ +

◆ sendAudio() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendAudio (int64_t chatId,
const InputFile::Ptraudio,
const std::string & caption = "",
int32_t duration = 0,
const std::string & performer = "",
const std::string & title = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Document).

Parameters
+ + + + + + + + + + +
chatIdUnique identifier for the target chat.
audioAudio to send.
captionAudio caption, 0-200 characters
durationDuration of sent audio in seconds.
performerPerformer
titleTrack name
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendAudio() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendAudio (int64_t chatId,
const std::string & audioId,
const std::string & caption = "",
int32_t duration = 0,
const std::string & performer = "",
const std::string & title = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Document).

Parameters
+ + + + + + + + + + +
chatIdUnique identifier for the target chat.
audioId of the audio that is already on the Telegram servers.
captionAudio caption, 0-200 characters
durationDuration of sent audio in seconds.
performerPerformer
titleTrack name
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendChatAction()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void TgBot::Api::sendChatAction (int64_t chatId,
const std::string & action 
) const
+
+

Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.

Parameters
+ + + +
chatIdUnique identifier for the target chat.
actionType of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_audio or upload_audio for audio files, upload_document for general files, find_location for location data.
+
+
+ +
+
+ +

◆ sendContact()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendContact (int64_t chatId,
std::string phoneNumber,
std::string firstName,
std::string lastName = "",
bool disableNotification = false,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr() 
) const
+
+

Use this method to send phone contacts. On success, the sent Message is returned.

Parameters
+ + + + + + + + +
chatIdUnique identifier for the target chat.
phoneNumberContact's phone number.
firstNameContact's first name.
lastNameContact's last name.
disableNotificationOptional. Sends the message silenty.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendDocument() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendDocument (int64_t chatId,
const InputFile::Ptrdocument,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send general files.

Parameters
+ + + + + + + +
chatIdUnique identifier for the target chat.
documentDocument to send.
captionDocument caption (may also be used when resending documents by file_id), 0-200 characters
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendDocument() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendDocument (int64_t chatId,
const std::string & documentId,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send general files.

Parameters
+ + + + + + + +
chatIdUnique identifier for the target chat.
documentId of the document that is already on the Telegram servers.
captionDocument caption (may also be used when resending documents by file_id), 0-200 characters
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendLocation()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendLocation (int64_t chatId,
float latitude,
float longitude,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send point on the map.

Parameters
+ + + + + + + +
chatIdUnique identifier for the target chat.
latitudeLatitude of location.
longitudeLongitude of location.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendMessage()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendMessage (int64_t chatId,
const std::string & text,
bool disableWebPagePreview = false,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
const std::string & parseMode = "",
bool disableNotification = false 
) const
+
+

Use this method to send text messages.

Parameters
+ + + + + + + + +
chatIdUnique identifier for the target chat.
textText of the message to be sent.
disableWebPagePreviewOptional. Disables link previews for links in this message.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
parseModeOptional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendPhoto() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendPhoto (int64_t chatId,
const InputFile::Ptrphoto,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send photos.

Parameters
+ + + + + + + +
chatIdUnique identifier for the target chat.
photoPhoto to send.
captionOptional. Photo caption.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendPhoto() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendPhoto (int64_t chatId,
const std::string & photoId,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send photos.

Parameters
+ + + + + + + +
chatIdUnique identifier for the target chat.
photoPhoto to send. Id of the photo that is already on the Telegram servers.
captionOptional. Photo caption.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendSticker() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendSticker (int64_t chatId,
const InputFile::Ptrsticker,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send .webp stickers.

Parameters
+ + + + + + +
chatIdUnique identifier for the target chat.
stickerSticker to send.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendSticker() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendSticker (int64_t chatId,
const std::string & stickerId,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send .webp stickers.

Parameters
+ + + + + + +
chatIdUnique identifier for the target chat.
stickerId of the sticker that is already on the Telegram servers.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendVenue()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendVenue (int64_t chatId,
float latitude,
float longitude,
std::string title,
std::string address,
std::string foursquareId = "",
bool disableNotification = false,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr() 
) const
+
+

Use this method to send information about a venue. On success, the sent Message is returned.

Parameters
+ + + + + + + + + + +
chatIdUnique identifier for the target chat.
latitudeLatitude of location.
longitudeLongitude of location.
titleName of the venue.
addressAddress of the venue.
foursquare_idFoursquare identifier of the venue.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendVideo() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendVideo (int64_t chatId,
const InputFile::Ptrvideo,
int32_t duration = 0,
int32_t width = 0,
int32_t height = 0,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).

Parameters
+ + + + + + + + + + +
chatIdUnique identifier for the target chat.
videoVideo to send.
durationDuration of sent video in seconds
widthVideo width
heightVideo height
captionVideo caption (may also be used when resending videos by file_id), 0-200 characters
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendVideo() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendVideo (int64_t chatId,
const std::string & videoId,
int32_t duration = 0,
int32_t width = 0,
int32_t height = 0,
const std::string & caption = "",
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document).

Parameters
+ + + + + + + + + + +
chatIdUnique identifier for the target chat.
videoId of the video that is already on the Telegram servers.
durationDuration of sent video in seconds
widthVideo width
heightVideo height
captionVideo caption (may also be used when resending videos by file_id), 0-200 characters
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendVoice() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendVoice (int64_t chatId,
const InputFile::Ptrvoice,
const std::string & caption = "",
int duration = 0,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.

Parameters
+ + + + + + + + +
chatIdUnique identifier for the target chat.
voiceAudio file to send.
captionVoice message caption, 0-200 characters
durationDuration of send audio in seconds.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ sendVoice() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Message::Ptr TgBot::Api::sendVoice (int64_t chatId,
const std::string & voiceId,
const std::string & caption = "",
int duration = 0,
int32_t replyToMessageId = 0,
const GenericReply::PtrreplyMarkup = GenericReply::Ptr(),
bool disableNotification = false 
) const
+
+

Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.

Parameters
+ + + + + + + + +
chatIdUnique identifier for the target chat.
voiceIdId of the voice that is already on the Telegram servers.
captionVoice message caption, 0-200 characters
durationDuration of send audio in seconds.
replyToMessageIdOptional. If the message is a reply, ID of the original message.
replyMarkupOptional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.
disableNotificationOptional. Sends the message silenty.
+
+
+
Returns
On success, the sent message is returned.
+ +
+
+ +

◆ setWebhook()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void TgBot::Api::setWebhook (const std::string & url = "",
const InputFile::Ptrcertificate = nullptr,
int32_t maxConnection = 40,
const StringArrayPtr & allowedUpdates = nullptr 
) const
+
+

Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. www.example.com/<token>. Since nobody else knows your bot‘s token, you can be pretty sure it’s us. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up. We currently do not support self-signed certificates. Ports currently supported for Webhooks: 443, 80, 88, 8443.

Parameters
+ + +
urlOptional. HTTPS url to send updates to. Use an empty string to remove webhook integration.
+
+
+ +
+
+ +

◆ unbanChatMember()

+ +
+
+ + + + + + + + + + + + + + + + + + +
bool TgBot::Api::unbanChatMember (int64_t chatId,
int32_t userId 
) const
+
+

Use this method to unban a previously kicked user in a supergroup.

Parameters
+ + + +
chatIdUnique identifier for the target group.
userIdUnique identifier of the target user.
+
+
+
Returns
True on success
+ +
+
+

Friends And Related Function Documentation

+ +

◆ Bot

+ +
+
+ + + + + +
+ + + + +
friend class Bot
+
+friend
+
+ +

Definition at line 56 of file Api.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/d9/d69/class_tg_bot_1_1_api.js b/docs/d9/d69/class_tg_bot_1_1_api.js new file mode 100644 index 0000000..47ab9d9 --- /dev/null +++ b/docs/d9/d69/class_tg_bot_1_1_api.js @@ -0,0 +1,42 @@ +var class_tg_bot_1_1_api = +[ + [ "Api", "d9/d69/class_tg_bot_1_1_api.html#ac0e4615a8944c07e7db3811ee84f2a94", null ], + [ "answerCallbackQuery", "d9/d69/class_tg_bot_1_1_api.html#a2f73414941d8bb67ff3721a674274bf8", null ], + [ "answerInlineQuery", "d9/d69/class_tg_bot_1_1_api.html#a430f9e036859250345d2125b7688a1f9", null ], + [ "deleteWebhook", "d9/d69/class_tg_bot_1_1_api.html#a8fbfde4234553c478987746c43b08e62", null ], + [ "editMessageCaption", "d9/d69/class_tg_bot_1_1_api.html#a7d8a296982d5c226cd2044c7cd3eff08", null ], + [ "editMessageReplyMarkup", "d9/d69/class_tg_bot_1_1_api.html#a1a9c38841dd135a6910f011f51f5a446", null ], + [ "editMessageText", "d9/d69/class_tg_bot_1_1_api.html#a4d6a7d6a90e82689de922b99ffe7b279", null ], + [ "forwardMessage", "d9/d69/class_tg_bot_1_1_api.html#acf5818100f3529706d8aa888f3922594", null ], + [ "getChat", "d9/d69/class_tg_bot_1_1_api.html#ad042b4d7f03f45eb59acb68085faaa23", null ], + [ "getChatAdministrators", "d9/d69/class_tg_bot_1_1_api.html#a2fd133b562c8bcad74d4b76e4fdbc5b8", null ], + [ "getChatMember", "d9/d69/class_tg_bot_1_1_api.html#a648190cc90ed13172bc2327344d0e7f6", null ], + [ "getChatMembersCount", "d9/d69/class_tg_bot_1_1_api.html#a018da546747f0d34a5fa3bdb6a715a07", null ], + [ "getFile", "d9/d69/class_tg_bot_1_1_api.html#abff10c92fa22a812d5bc17a068413709", null ], + [ "getMe", "d9/d69/class_tg_bot_1_1_api.html#a566fcf52400de18737110edd7ab01535", null ], + [ "getUpdates", "d9/d69/class_tg_bot_1_1_api.html#abd10abcfaf859c63cab0526b8c9179c9", null ], + [ "getUserProfilePhotos", "d9/d69/class_tg_bot_1_1_api.html#aa605f96bd5de1a3a432e14a160bac210", null ], + [ "getWebhookInfo", "d9/d69/class_tg_bot_1_1_api.html#a43bf35783ec4f9a03e46925e36fda24c", null ], + [ "kickChatMember", "d9/d69/class_tg_bot_1_1_api.html#a07c9bb7aa68a66bec54dd9bcf97875d7", null ], + [ "leaveChat", "d9/d69/class_tg_bot_1_1_api.html#a28d6bda0f615ff1c7063905eb61b5cde", null ], + [ "sendAudio", "d9/d69/class_tg_bot_1_1_api.html#a95c614ace41968c47ce2236cd85d5c82", null ], + [ "sendAudio", "d9/d69/class_tg_bot_1_1_api.html#aadb18626cc502c6b16402eb04dd624db", null ], + [ "sendChatAction", "d9/d69/class_tg_bot_1_1_api.html#a77fe17ad287f702bb021fc92575a0e2d", null ], + [ "sendContact", "d9/d69/class_tg_bot_1_1_api.html#ae40457b964cc05443c5e8aa0c5300f51", null ], + [ "sendDocument", "d9/d69/class_tg_bot_1_1_api.html#a771b4c3597217d5cbcdf1191693b3419", null ], + [ "sendDocument", "d9/d69/class_tg_bot_1_1_api.html#acffc0358fc453207694e5517a92f5580", null ], + [ "sendLocation", "d9/d69/class_tg_bot_1_1_api.html#a9b72378c248c11739b4a2d86a3afd485", null ], + [ "sendMessage", "d9/d69/class_tg_bot_1_1_api.html#a8d7ace74013fbe6803c1a4d8cda579e4", null ], + [ "sendPhoto", "d9/d69/class_tg_bot_1_1_api.html#aa78cb2f3053726f421d1cb8363d581f5", null ], + [ "sendPhoto", "d9/d69/class_tg_bot_1_1_api.html#a274bef0b2af3641c959b4ddbe03c012f", null ], + [ "sendSticker", "d9/d69/class_tg_bot_1_1_api.html#a334fd1983a78079b2ed3c9b107cf586f", null ], + [ "sendSticker", "d9/d69/class_tg_bot_1_1_api.html#aefbe8faba25015d006fcbf0c8e1c5343", null ], + [ "sendVenue", "d9/d69/class_tg_bot_1_1_api.html#a4f88e34dec1960cb74514a632781b193", null ], + [ "sendVideo", "d9/d69/class_tg_bot_1_1_api.html#ab9d31ba2b43f5e7df31c3fb023f48f95", null ], + [ "sendVideo", "d9/d69/class_tg_bot_1_1_api.html#a7b1158a58e0c61f54ddbfddfae915d23", null ], + [ "sendVoice", "d9/d69/class_tg_bot_1_1_api.html#a96b602c6d2f0b5c140e6e64436244358", null ], + [ "sendVoice", "d9/d69/class_tg_bot_1_1_api.html#a48be8349eed8be07e12ffbf0a2c47974", null ], + [ "setWebhook", "d9/d69/class_tg_bot_1_1_api.html#ad961e1b605e9d6707c362ee046b9cfda", null ], + [ "unbanChatMember", "d9/d69/class_tg_bot_1_1_api.html#a44ea670c4eecdf100f60be3c90911eec", null ], + [ "Bot", "d9/d69/class_tg_bot_1_1_api.html#afb5d57ac6b56fe83e7894e3b686c3339", null ] +]; \ No newline at end of file diff --git a/docs/d9/d70/class_tg_bot_1_1_keyboard_button.html b/docs/d9/d70/class_tg_bot_1_1_keyboard_button.html new file mode 100644 index 0000000..bc74d23 --- /dev/null +++ b/docs/d9/d70/class_tg_bot_1_1_keyboard_button.html @@ -0,0 +1,195 @@ + + + + + + + +tgbot-cpp: TgBot::KeyboardButton Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::KeyboardButton Class Reference
+
+
+ +

#include <KeyboardButton.h>

+ + + + +

+Public Types

typedef std::shared_ptr< KeyboardButtonPtr
 
+ + + + + + + +

+Public Attributes

std::string text
 
bool requestContact = false
 
bool requestLocation = false
 
+

Detailed Description

+

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.

+ +

Definition at line 19 of file KeyboardButton.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ + + + +
typedef std::shared_ptr<KeyboardButton> TgBot::KeyboardButton::Ptr
+
+ +

Definition at line 22 of file KeyboardButton.h.

+ +
+
+

Member Data Documentation

+ +

◆ requestContact

+ +
+
+ + + + +
bool TgBot::KeyboardButton::requestContact = false
+
+

Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only

+ +

Definition at line 34 of file KeyboardButton.h.

+ +
+
+ +

◆ requestLocation

+ +
+
+ + + + +
bool TgBot::KeyboardButton::requestLocation = false
+
+

Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.

+ +

Definition at line 39 of file KeyboardButton.h.

+ +
+
+ +

◆ text

+ +
+
+ + + + +
std::string TgBot::KeyboardButton::text
+
+

Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed

+ +

Definition at line 28 of file KeyboardButton.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/d9/d70/class_tg_bot_1_1_keyboard_button.js b/docs/d9/d70/class_tg_bot_1_1_keyboard_button.js new file mode 100644 index 0000000..b199c0f --- /dev/null +++ b/docs/d9/d70/class_tg_bot_1_1_keyboard_button.js @@ -0,0 +1,7 @@ +var class_tg_bot_1_1_keyboard_button = +[ + [ "Ptr", "d9/d70/class_tg_bot_1_1_keyboard_button.html#afa66915e5a8d58dbd7276265f00b0bcd", null ], + [ "requestContact", "d9/d70/class_tg_bot_1_1_keyboard_button.html#a3e8c6e40ecf3a8f739a12265a89fd381", null ], + [ "requestLocation", "d9/d70/class_tg_bot_1_1_keyboard_button.html#a8948e0ca465352d04c44767c25275022", null ], + [ "text", "d9/d70/class_tg_bot_1_1_keyboard_button.html#ac9ac8ddd73e27732fcbab7163ff74e2e", null ] +]; \ No newline at end of file diff --git a/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.html b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.html new file mode 100644 index 0000000..6e46edd --- /dev/null +++ b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.html @@ -0,0 +1,270 @@ + + + + + + + +tgbot-cpp: TgBot::InlineQueryResultVoice Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::InlineQueryResultVoice Class Reference
+
+
+ +

#include <InlineQueryResultVoice.h>

+
+Inheritance diagram for TgBot::InlineQueryResultVoice:
+
+
+ + +TgBot::InlineQueryResult + +
+ + + + + + + +

+Public Types

typedef std::shared_ptr< InlineQueryResultVoicePtr
 
- Public Types inherited from TgBot::InlineQueryResult
typedef std::shared_ptr< InlineQueryResultPtr
 
+ + + + + + + + +

+Public Member Functions

 InlineQueryResultVoice ()
 
- Public Member Functions inherited from TgBot::InlineQueryResult
 InlineQueryResult ()
 
virtual ~InlineQueryResult ()
 
+ + + + + + + + + + + + + + + + + + +

+Public Attributes

std::string voiceUrl
 
int32_t voiceDuration
 
- Public Attributes inherited from TgBot::InlineQueryResult
std::string type
 
std::string id
 
std::string title
 
std::string caption
 
InlineKeyboardMarkup::Ptr replyMarkup
 
InputMessageContent::Ptr inputMessageContent
 
+ + + +

+Static Public Attributes

static const std::string TYPE
 
+

Detailed Description

+

Represents link to a page containing an embedded video player or a video file.

+ +

Definition at line 14 of file InlineQueryResultVoice.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ + + + +
typedef std::shared_ptr<InlineQueryResultVoice> TgBot::InlineQueryResultVoice::Ptr
+
+ +

Definition at line 18 of file InlineQueryResultVoice.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ InlineQueryResultVoice()

+ +
+
+ + + + + +
+ + + + + + + +
TgBot::InlineQueryResultVoice::InlineQueryResultVoice ()
+
+inline
+
+ +

Definition at line 20 of file InlineQueryResultVoice.h.

+ +
+
+

Member Data Documentation

+ +

◆ TYPE

+ +
+
+ + + + + +
+ + + + +
const std::string TgBot::InlineQueryResultVoice::TYPE
+
+static
+
+ +

Definition at line 16 of file InlineQueryResultVoice.h.

+ +
+
+ +

◆ voiceDuration

+ +
+
+ + + + +
int32_t TgBot::InlineQueryResultVoice::voiceDuration
+
+

Optional. Recording duration in seconds

+ +

Definition at line 33 of file InlineQueryResultVoice.h.

+ +
+
+ +

◆ voiceUrl

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultVoice::voiceUrl
+
+

A valid URL for the voice recording

+ +

Definition at line 23 of file InlineQueryResultVoice.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.js b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.js new file mode 100644 index 0000000..d13d28b --- /dev/null +++ b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.js @@ -0,0 +1,7 @@ +var class_tg_bot_1_1_inline_query_result_voice = +[ + [ "Ptr", "d9/d76/class_tg_bot_1_1_inline_query_result_voice.html#a4cf1aa18aaec542598e39ee7416c7df9", null ], + [ "InlineQueryResultVoice", "d9/d76/class_tg_bot_1_1_inline_query_result_voice.html#a01f73a78827c6ec75f7b355b521efd47", null ], + [ "voiceDuration", "d9/d76/class_tg_bot_1_1_inline_query_result_voice.html#a628636c93a2dbf8440cb3989ba1aaceb", null ], + [ "voiceUrl", "d9/d76/class_tg_bot_1_1_inline_query_result_voice.html#afc09fe61b4fcdce1644d55ec488ecda9", null ] +]; \ No newline at end of file diff --git a/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.png b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.png new file mode 100644 index 0000000..6d7d496 Binary files /dev/null and b/docs/d9/d76/class_tg_bot_1_1_inline_query_result_voice.png differ diff --git a/docs/d9/d86/class_tg_bot_1_1_url.html b/docs/d9/d86/class_tg_bot_1_1_url.html new file mode 100644 index 0000000..fc306f5 --- /dev/null +++ b/docs/d9/d86/class_tg_bot_1_1_url.html @@ -0,0 +1,235 @@ + + + + + + + +tgbot-cpp: TgBot::Url Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::Url Class Reference
+
+
+ +

#include <Url.h>

+ + + + +

+Public Member Functions

 Url (const std::string &url)
 
+ + + + + + + + + + + +

+Public Attributes

std::string protocol
 
std::string host
 
std::string path
 
std::string query
 
std::string fragment
 
+

Detailed Description

+

This class parses a string with the url

+ +

Definition at line 34 of file Url.h.

+

Constructor & Destructor Documentation

+ +

◆ Url()

+ +
+
+ + + + + + + + +
TgBot::Url::Url (const std::string & url)
+
+ +
+
+

Member Data Documentation

+ +

◆ fragment

+ +
+
+ + + + +
std::string TgBot::Url::fragment
+
+

Fragment part of an url without '#' char. Example: section1

+ +

Definition at line 62 of file Url.h.

+ +
+
+ +

◆ host

+ +
+
+ + + + +
std::string TgBot::Url::host
+
+

Host part of an url. Example: www.example.com

+ +

Definition at line 47 of file Url.h.

+ +
+
+ +

◆ path

+ +
+
+ + + + +
std::string TgBot::Url::path
+
+

Path part of an url including preceding '/' char. Example: /index.html

+ +

Definition at line 52 of file Url.h.

+ +
+
+ +

◆ protocol

+ +
+
+ + + + +
std::string TgBot::Url::protocol
+
+

Protocol part of an url. Example: https://

+ +

Definition at line 42 of file Url.h.

+ +
+
+ +

◆ query

+ +
+
+ + + + +
std::string TgBot::Url::query
+
+

Query part of an url without '?' char. Example: a=1&b=2&c=3

+ +

Definition at line 57 of file Url.h.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • include/tgbot/net/Url.h
  • +
+
+
+ + + + diff --git a/docs/d9/d86/class_tg_bot_1_1_url.js b/docs/d9/d86/class_tg_bot_1_1_url.js new file mode 100644 index 0000000..addcda3 --- /dev/null +++ b/docs/d9/d86/class_tg_bot_1_1_url.js @@ -0,0 +1,9 @@ +var class_tg_bot_1_1_url = +[ + [ "Url", "d9/d86/class_tg_bot_1_1_url.html#a5c3add4bb050af6ad7b5444b9ad0a0a3", null ], + [ "fragment", "d9/d86/class_tg_bot_1_1_url.html#abed0138e57cc2d003b61b319f34c4fcd", null ], + [ "host", "d9/d86/class_tg_bot_1_1_url.html#aa3536ad7ecd12e04db434e7566ae53e7", null ], + [ "path", "d9/d86/class_tg_bot_1_1_url.html#a22b43623b7de7e817699dffb85edb532", null ], + [ "protocol", "d9/d86/class_tg_bot_1_1_url.html#a36af00d44ee8fcba1d06a8d6c5c9ac49", null ], + [ "query", "d9/d86/class_tg_bot_1_1_url.html#a3d50fc5ac2a9955a4d129082bbdad8b0", null ] +]; \ No newline at end of file diff --git a/docs/d9/dac/_location_8h.html b/docs/d9/dac/_location_8h.html new file mode 100644 index 0000000..be06b05 --- /dev/null +++ b/docs/d9/dac/_location_8h.html @@ -0,0 +1,115 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/Location.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Location.h File Reference
+
+
+
#include <memory>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::Location
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/d9/dac/_location_8h_source.html b/docs/d9/dac/_location_8h_source.html new file mode 100644 index 0000000..84d672f --- /dev/null +++ b/docs/d9/dac/_location_8h_source.html @@ -0,0 +1,103 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/Location.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Location.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_LOCATION_H
24 #define TGBOT_CPP_LOCATION_H
25 
26 #include <memory>
27 
28 namespace TgBot {
29 
34 class Location {
35 
36 public:
37  typedef std::shared_ptr<Location> Ptr;
38 
42  float longitude;
43 
47  float latitude;
48 };
49 
50 }
51 
52 #endif //TGBOT_CPP_LOCATION_H
Definition: Api.h:44
+
std::shared_ptr< Location > Ptr
Definition: Location.h:37
+
float longitude
Definition: Location.h:42
+
float latitude
Definition: Location.h:47
+ +
+
+ + + + diff --git a/docs/d9/db4/class_tg_bot_1_1_inline_query_result_contact-members.html b/docs/d9/db4/class_tg_bot_1_1_inline_query_result_contact-members.html new file mode 100644 index 0000000..d1ade02 --- /dev/null +++ b/docs/d9/db4/class_tg_bot_1_1_inline_query_result_contact-members.html @@ -0,0 +1,117 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::InlineQueryResultContact Member List
+
+ +
+ + + + diff --git a/docs/d9/dd2/group__net.html b/docs/d9/dd2/group__net.html new file mode 100644 index 0000000..07de320 --- /dev/null +++ b/docs/d9/dd2/group__net.html @@ -0,0 +1,116 @@ + + + + + + + +tgbot-cpp: Net + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Net
+
+
+ + + + + + + + + + + + + + +

+Classes

class  TgBot::HttpClient
 
class  TgBot::HttpReqArg
 
class  TgBot::HttpServer< Protocol >
 
class  TgBot::TgLongPoll
 
class  TgBot::TgWebhookTcpServer
 
class  TgBot::Url
 
+

Detailed Description

+
+
+ + + + diff --git a/docs/d9/dd2/group__net.js b/docs/d9/dd2/group__net.js new file mode 100644 index 0000000..2c97b5c --- /dev/null +++ b/docs/d9/dd2/group__net.js @@ -0,0 +1,48 @@ +var group__net = +[ + [ "HttpClient", "d5/d82/class_tg_bot_1_1_http_client.html", [ + [ "makeRequest", "d5/d82/class_tg_bot_1_1_http_client.html#a1de1ba0e962c7446e9820337bbf6d3e5", null ] + ] ], + [ "HttpReqArg", "d8/ded/class_tg_bot_1_1_http_req_arg.html", [ + [ "HttpReqArg", "d8/ded/class_tg_bot_1_1_http_req_arg.html#aaff7072fe781f191ddca430088447d19", null ], + [ "fileName", "d8/ded/class_tg_bot_1_1_http_req_arg.html#af75b0592fd96d9dcc31f7f5dc95425dc", null ], + [ "isFile", "d8/ded/class_tg_bot_1_1_http_req_arg.html#a9e372ea4360d239037cfeb673d31d9f3", null ], + [ "mimeType", "d8/ded/class_tg_bot_1_1_http_req_arg.html#a74387e5b5fe9713a805b33e693930bd5", null ], + [ "name", "d8/ded/class_tg_bot_1_1_http_req_arg.html#a9772f0982d33fdebe587106d0b4f921d", null ], + [ "value", "d8/ded/class_tg_bot_1_1_http_req_arg.html#ae854084229a093b6819953d0055844eb", null ] + ] ], + [ "HttpServer", "d4/d8b/class_tg_bot_1_1_http_server.html", [ + [ "Connection", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html", [ + [ "Connection", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html#a91a16ce20e8d889657a7d2c982d8b1c8", null ], + [ "start", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html#a8cecda345ca78c8dc43c39423511af4d", null ], + [ "_handler", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html#ab630576fda90c3a33e563e44cd5a08dd", null ], + [ "data", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html#a23e0644c0e4d02eb96b9dd61404a8788", null ], + [ "socket", "d5/d11/class_tg_bot_1_1_http_server_1_1_connection.html#a2104f20074b0a9fb17192ebbb1846b20", null ] + ] ], + [ "ServerHandler", "d4/d8b/class_tg_bot_1_1_http_server.html#ae3b5d008d0ec0c9dd14b4a8bccdf8c0b", null ], + [ "HttpServer", "d4/d8b/class_tg_bot_1_1_http_server.html#a8edad0dd91ffffa6cacce4d49cb60abe", null ], + [ "start", "d4/d8b/class_tg_bot_1_1_http_server.html#aa237b199d8a0712b983e4913970ad7f7", null ], + [ "stop", "d4/d8b/class_tg_bot_1_1_http_server.html#aeed8b9200cc2932126b9c27946751377", null ], + [ "_acceptor", "d4/d8b/class_tg_bot_1_1_http_server.html#a020e76d58f70ad41686081be41a8c108", null ], + [ "_handler", "d4/d8b/class_tg_bot_1_1_http_server.html#a9af2cf386463a1f40d0d3e9d92d88eec", null ], + [ "_ioService", "d4/d8b/class_tg_bot_1_1_http_server.html#a68812914f5c398331ee3ef8e77fe39b7", null ] + ] ], + [ "TgLongPoll", "d1/d2a/class_tg_bot_1_1_tg_long_poll.html", [ + [ "TgLongPoll", "d1/d2a/class_tg_bot_1_1_tg_long_poll.html#a8dd807824f44bbc65f2732b8fd6cc445", null ], + [ "TgLongPoll", "d1/d2a/class_tg_bot_1_1_tg_long_poll.html#ac11acd326ed58c6247ec759efbb74836", null ], + [ "start", "d1/d2a/class_tg_bot_1_1_tg_long_poll.html#a8928ddad3b976a636a53bb066180cbaa", null ] + ] ], + [ "TgWebhookTcpServer", "d6/d97/class_tg_bot_1_1_tg_webhook_tcp_server.html", [ + [ "TgWebhookTcpServer", "d6/d97/class_tg_bot_1_1_tg_webhook_tcp_server.html#a20fcf9d23bee83730df8cf444573bf31", null ], + [ "TgWebhookTcpServer", "d6/d97/class_tg_bot_1_1_tg_webhook_tcp_server.html#a7e1192771fa0448a6e2347902a74a032", null ], + [ "TgWebhookTcpServer", "d6/d97/class_tg_bot_1_1_tg_webhook_tcp_server.html#a58d11a7cae91b02f58ba5597da28a103", null ] + ] ], + [ "Url", "d9/d86/class_tg_bot_1_1_url.html", [ + [ "Url", "d9/d86/class_tg_bot_1_1_url.html#a5c3add4bb050af6ad7b5444b9ad0a0a3", null ], + [ "fragment", "d9/d86/class_tg_bot_1_1_url.html#abed0138e57cc2d003b61b319f34c4fcd", null ], + [ "host", "d9/d86/class_tg_bot_1_1_url.html#aa3536ad7ecd12e04db434e7566ae53e7", null ], + [ "path", "d9/d86/class_tg_bot_1_1_url.html#a22b43623b7de7e817699dffb85edb532", null ], + [ "protocol", "d9/d86/class_tg_bot_1_1_url.html#a36af00d44ee8fcba1d06a8d6c5c9ac49", null ], + [ "query", "d9/d86/class_tg_bot_1_1_url.html#a3d50fc5ac2a9955a4d129082bbdad8b0", null ] + ] ] +]; \ No newline at end of file diff --git a/docs/d9/dd7/_url_8h.html b/docs/d9/dd7/_url_8h.html new file mode 100644 index 0000000..6de70b3 --- /dev/null +++ b/docs/d9/dd7/_url_8h.html @@ -0,0 +1,115 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/Url.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Url.h File Reference
+
+
+
#include <string>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::Url
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/d9/dd7/_url_8h_source.html b/docs/d9/dd7/_url_8h_source.html new file mode 100644 index 0000000..011562a --- /dev/null +++ b/docs/d9/dd7/_url_8h_source.html @@ -0,0 +1,106 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/Url.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Url.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_URL_H
24 #define TGBOT_CPP_URL_H
25 
26 #include <string>
27 
28 namespace TgBot {
29 
34 class Url {
35 
36 public:
37  Url(const std::string& url);
38 
42  std::string protocol;
43 
47  std::string host;
48 
52  std::string path;
53 
57  std::string query;
58 
62  std::string fragment;
63 };
64 
65 }
66 
67 #endif //TGBOT_CPP_URL_H
Url(const std::string &url)
+
Definition: Api.h:44
+
std::string query
Definition: Url.h:57
+
std::string protocol
Definition: Url.h:42
+
std::string fragment
Definition: Url.h:62
+
Definition: Url.h:34
+
std::string path
Definition: Url.h:52
+
std::string host
Definition: Url.h:47
+
+
+ + + + diff --git a/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.html b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.html new file mode 100644 index 0000000..a82c3e3 --- /dev/null +++ b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.html @@ -0,0 +1,259 @@ + + + + + + + +tgbot-cpp: TgBot::InputLocationMessageContent Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::InputLocationMessageContent Class Reference
+
+
+ +

#include <InputLocationMessageContent.h>

+
+Inheritance diagram for TgBot::InputLocationMessageContent:
+
+
+ + +TgBot::InputMessageContent + +
+ + + + + + + +

+Public Types

typedef std::shared_ptr< InputLocationMessageContentPtr
 
- Public Types inherited from TgBot::InputMessageContent
typedef std::shared_ptr< InputMessageContentPtr
 
+ + + + + + + + + + +

+Public Member Functions

 InputLocationMessageContent ()
 
virtual ~InputLocationMessageContent ()
 
- Public Member Functions inherited from TgBot::InputMessageContent
 InputMessageContent (const std::string &tType)
 
virtual ~InputMessageContent ()
 
+ + + + + + + + +

+Public Attributes

float latitude
 
float longitude
 
- Public Attributes inherited from TgBot::InputMessageContent
std::string type
 
+

Detailed Description

+

Represents the content of a location message to be sent as the result of an inline query.

+ +

Definition at line 16 of file InputLocationMessageContent.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ +

Definition at line 18 of file InputLocationMessageContent.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ InputLocationMessageContent()

+ +
+
+ + + + + +
+ + + + + + + +
TgBot::InputLocationMessageContent::InputLocationMessageContent ()
+
+inline
+
+ +

Definition at line 20 of file InputLocationMessageContent.h.

+ +
+
+ +

◆ ~InputLocationMessageContent()

+ +
+
+ + + + + +
+ + + + + + + +
virtual TgBot::InputLocationMessageContent::~InputLocationMessageContent ()
+
+inlinevirtual
+
+ +

Definition at line 34 of file InputLocationMessageContent.h.

+ +
+
+

Member Data Documentation

+ +

◆ latitude

+ +
+
+ + + + +
float TgBot::InputLocationMessageContent::latitude
+
+

Latitude of the location in degrees

+ +

Definition at line 27 of file InputLocationMessageContent.h.

+ +
+
+ +

◆ longitude

+ +
+
+ + + + +
float TgBot::InputLocationMessageContent::longitude
+
+

Longitude of the location in degrees

+ +

Definition at line 32 of file InputLocationMessageContent.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.js b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.js new file mode 100644 index 0000000..8f95c78 --- /dev/null +++ b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.js @@ -0,0 +1,8 @@ +var class_tg_bot_1_1_input_location_message_content = +[ + [ "Ptr", "d9/dec/class_tg_bot_1_1_input_location_message_content.html#a80ef24779acdb726590e8aaa87c52840", null ], + [ "InputLocationMessageContent", "d9/dec/class_tg_bot_1_1_input_location_message_content.html#ace56f8081ed46a4729a5f37dacdcb05e", null ], + [ "~InputLocationMessageContent", "d9/dec/class_tg_bot_1_1_input_location_message_content.html#acbcd463ae944168b265e789509e6de55", null ], + [ "latitude", "d9/dec/class_tg_bot_1_1_input_location_message_content.html#a2fd689365b19b085bdd59f928e3c3e16", null ], + [ "longitude", "d9/dec/class_tg_bot_1_1_input_location_message_content.html#a6dea79838b9c9f9194c1ec49d5eb8e49", null ] +]; \ No newline at end of file diff --git a/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.png b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.png new file mode 100644 index 0000000..a75b99c Binary files /dev/null and b/docs/d9/dec/class_tg_bot_1_1_input_location_message_content.png differ -- cgit v1.2.3