From b22c20c4db8c35eaee99075d055f74697c5805b8 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:33:59 +0300 Subject: Docs --- docs/df/d0c/_file_8h.html | 116 +++++++ docs/df/d0c/_file_8h_source.html | 104 ++++++ ...1_1_input_location_message_content-members.html | 108 ++++++ ...s_tg_bot_1_1_inline_query_result_mpeg4_gif.html | 308 +++++++++++++++++ ...ass_tg_bot_1_1_inline_query_result_mpeg4_gif.js | 9 + ...ss_tg_bot_1_1_inline_query_result_mpeg4_gif.png | Bin 0 -> 831 bytes .../class_tg_bot_1_1_tg_type_parser-members.html | 217 ++++++++++++ docs/df/d32/class_tg_bot_1_1_contact.html | 214 ++++++++++++ docs/df/d32/class_tg_bot_1_1_contact.js | 8 + .../d40/class_tg_bot_1_1_user_profile_photos.html | 176 ++++++++++ .../df/d40/class_tg_bot_1_1_user_profile_photos.js | 6 + docs/df/d4d/_generic_reply_8h.html | 115 +++++++ docs/df/d4d/_generic_reply_8h_source.html | 102 ++++++ ...1_inline_query_result_cached_voice-members.html | 112 +++++++ ..._tg_bot_1_1_inline_keyboard_button-members.html | 106 ++++++ docs/df/d65/_tg_webhook_tcp_server_8h.html | 115 +++++++ docs/df/d65/_tg_webhook_tcp_server_8h_source.html | 108 ++++++ .../df/d6f/_input_location_message_content_8h.html | 115 +++++++ .../_input_location_message_content_8h_source.html | 106 ++++++ docs/df/d88/_contact_8h.html | 116 +++++++ docs/df/d88/_contact_8h_source.html | 105 ++++++ ...class_tg_bot_1_1_inline_query_result_venue.html | 365 +++++++++++++++++++++ .../class_tg_bot_1_1_inline_query_result_venue.js | 12 + .../class_tg_bot_1_1_inline_query_result_venue.png | Bin 0 -> 776 bytes .../dae/class_tg_bot_1_1_http_parser-members.html | 110 +++++++ docs/df/dcb/_event_broadcaster_8h.html | 122 +++++++ docs/df/dcb/_event_broadcaster_8h_source.html | 120 +++++++ .../dde/class_tg_bot_1_1_webhook_info-members.html | 108 ++++++ ...g_bot_1_1_inline_query_result_cached_photo.html | 270 +++++++++++++++ ..._tg_bot_1_1_inline_query_result_cached_photo.js | 7 + ...tg_bot_1_1_inline_query_result_cached_photo.png | Bin 0 -> 830 bytes 31 files changed, 3480 insertions(+) create mode 100644 docs/df/d0c/_file_8h.html create mode 100644 docs/df/d0c/_file_8h_source.html create mode 100644 docs/df/d1a/class_tg_bot_1_1_input_location_message_content-members.html create mode 100644 docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html create mode 100644 docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.js create mode 100644 docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.png create mode 100644 docs/df/d31/class_tg_bot_1_1_tg_type_parser-members.html create mode 100644 docs/df/d32/class_tg_bot_1_1_contact.html create mode 100644 docs/df/d32/class_tg_bot_1_1_contact.js create mode 100644 docs/df/d40/class_tg_bot_1_1_user_profile_photos.html create mode 100644 docs/df/d40/class_tg_bot_1_1_user_profile_photos.js create mode 100644 docs/df/d4d/_generic_reply_8h.html create mode 100644 docs/df/d4d/_generic_reply_8h_source.html create mode 100644 docs/df/d52/class_tg_bot_1_1_inline_query_result_cached_voice-members.html create mode 100644 docs/df/d55/class_tg_bot_1_1_inline_keyboard_button-members.html create mode 100644 docs/df/d65/_tg_webhook_tcp_server_8h.html create mode 100644 docs/df/d65/_tg_webhook_tcp_server_8h_source.html create mode 100644 docs/df/d6f/_input_location_message_content_8h.html create mode 100644 docs/df/d6f/_input_location_message_content_8h_source.html create mode 100644 docs/df/d88/_contact_8h.html create mode 100644 docs/df/d88/_contact_8h_source.html create mode 100644 docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.html create mode 100644 docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.js create mode 100644 docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.png create mode 100644 docs/df/dae/class_tg_bot_1_1_http_parser-members.html create mode 100644 docs/df/dcb/_event_broadcaster_8h.html create mode 100644 docs/df/dcb/_event_broadcaster_8h_source.html create mode 100644 docs/df/dde/class_tg_bot_1_1_webhook_info-members.html create mode 100644 docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html create mode 100644 docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.js create mode 100644 docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.png (limited to 'docs/df') diff --git a/docs/df/d0c/_file_8h.html b/docs/df/d0c/_file_8h.html new file mode 100644 index 0000000..b530d57 --- /dev/null +++ b/docs/df/d0c/_file_8h.html @@ -0,0 +1,116 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/File.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
File.h File Reference
+
+
+
#include <string>
+#include <memory>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::File
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/d0c/_file_8h_source.html b/docs/df/d0c/_file_8h_source.html new file mode 100644 index 0000000..a1eb85f --- /dev/null +++ b/docs/df/d0c/_file_8h_source.html @@ -0,0 +1,104 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/File.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
File.h
+
+
+Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 //
4 
5 #ifndef TGBOT_CPP_FILE_H
6 #define TGBOT_CPP_FILE_H
7 
8 #include <string>
9 #include <memory>
10 
11 namespace TgBot {
12 
21 class File {
22 
23 public:
24  typedef std::shared_ptr<File> Ptr;
25 
29  std::string fileId;
30 
34  int32_t fileSize;
35 
40  std::string filePath;
41 };
42 
43 }
44 
45 #endif //TGBOT_CPP_FILE_H
std::shared_ptr< File > Ptr
Definition: File.h:24
+
std::string filePath
Definition: File.h:40
+ +
int32_t fileSize
Definition: File.h:34
+
Definition: Api.h:44
+
std::string fileId
Definition: File.h:29
+
+
+ + + + diff --git a/docs/df/d1a/class_tg_bot_1_1_input_location_message_content-members.html b/docs/df/d1a/class_tg_bot_1_1_input_location_message_content-members.html new file mode 100644 index 0000000..32b3f13 --- /dev/null +++ b/docs/df/d1a/class_tg_bot_1_1_input_location_message_content-members.html @@ -0,0 +1,108 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::InputLocationMessageContent Member List
+
+ +
+ + + + diff --git a/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html new file mode 100644 index 0000000..86c06f6 --- /dev/null +++ b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html @@ -0,0 +1,308 @@ + + + + + + + +tgbot-cpp: TgBot::InlineQueryResultMpeg4Gif Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::InlineQueryResultMpeg4Gif Class Reference
+
+
+ +

#include <InlineQueryResultMpeg4Gif.h>

+
+Inheritance diagram for TgBot::InlineQueryResultMpeg4Gif:
+
+
+ + +TgBot::InlineQueryResult + +
+ + + + + + + +

+Public Types

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

+Public Member Functions

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

+Public Attributes

std::string mpeg4Url
 
int32_t mpeg4Width
 
int32_t mpeg4Height
 
std::string thumbUrl
 
- 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 a link to a video animation (H.264/MPEG-4 AVC video without sound).

+ +

Definition at line 14 of file InlineQueryResultMpeg4Gif.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ +

Definition at line 18 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ InlineQueryResultMpeg4Gif()

+ +
+
+ + + + + +
+ + + + + + + +
TgBot::InlineQueryResultMpeg4Gif::InlineQueryResultMpeg4Gif ()
+
+inline
+
+ +

Definition at line 20 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+

Member Data Documentation

+ +

◆ mpeg4Height

+ +
+
+ + + + +
int32_t TgBot::InlineQueryResultMpeg4Gif::mpeg4Height
+
+

Optional. Video height.

+ +

Definition at line 39 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+ +

◆ mpeg4Url

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultMpeg4Gif::mpeg4Url
+
+

A valid URL for the MP4 file.

+ +

Definition at line 29 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+ +

◆ mpeg4Width

+ +
+
+ + + + +
int32_t TgBot::InlineQueryResultMpeg4Gif::mpeg4Width
+
+

Optional. Video width.

+ +

Definition at line 34 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+ +

◆ thumbUrl

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultMpeg4Gif::thumbUrl
+
+

URL of the static thumbnail (jpeg or gif) for the result

+ +

Definition at line 44 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+ +

◆ TYPE

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

Definition at line 16 of file InlineQueryResultMpeg4Gif.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.js b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.js new file mode 100644 index 0000000..992539b --- /dev/null +++ b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.js @@ -0,0 +1,9 @@ +var class_tg_bot_1_1_inline_query_result_mpeg4_gif = +[ + [ "Ptr", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#ad818a04396804ae76ea81d752d145e45", null ], + [ "InlineQueryResultMpeg4Gif", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#aee32f547953b7ea4735302fb41b7ac74", null ], + [ "mpeg4Height", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#a783d22cb41d4f8ee598cddde8d98b90c", null ], + [ "mpeg4Url", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#a32b8a36f73b908be5a142f58e3355069", null ], + [ "mpeg4Width", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#a5fe876f117ad0b850c6e0333717e431c", null ], + [ "thumbUrl", "df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.html#ac90d65262a4481d149f90153bcf621e5", null ] +]; \ No newline at end of file diff --git a/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.png b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.png new file mode 100644 index 0000000..872c5e6 Binary files /dev/null and b/docs/df/d1e/class_tg_bot_1_1_inline_query_result_mpeg4_gif.png differ diff --git a/docs/df/d31/class_tg_bot_1_1_tg_type_parser-members.html b/docs/df/d31/class_tg_bot_1_1_tg_type_parser-members.html new file mode 100644 index 0000000..4303155 --- /dev/null +++ b/docs/df/d31/class_tg_bot_1_1_tg_type_parser-members.html @@ -0,0 +1,217 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::TgTypeParser Member List
+
+
+ +

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
getInstance()TgBot::TgTypeParserstatic
JsonToTgTypeFunc typedefTgBot::TgTypeParser
parse2DArray(TgTypeToJsonFunc< T > parseFunc, const std::vector< std::vector< std::shared_ptr< T >>> &objects) constTgBot::TgTypeParserinline
parseArray(TgTypeToJsonFunc< T > parseFunc, const std::vector< std::shared_ptr< T >> &objects) constTgBot::TgTypeParserinline
parseArray(std::function< T(const T &)> parseFunc, const std::vector< T > &objects) constTgBot::TgTypeParserinline
parseAudio(const Audio::Ptr &object) constTgBot::TgTypeParser
parseCallbackQuery(const CallbackQuery::Ptr &object) constTgBot::TgTypeParser
parseChat(const Chat::Ptr &object) constTgBot::TgTypeParser
parseChatMember(const ChatMember::Ptr &object) constTgBot::TgTypeParser
parseChosenInlineResult(const ChosenInlineResult::Ptr &object) constTgBot::TgTypeParser
parseContact(const Contact::Ptr &object) constTgBot::TgTypeParser
parseDocument(const Document::Ptr &object) constTgBot::TgTypeParser
parseFile(const File::Ptr &object) constTgBot::TgTypeParser
parseForceReply(const ForceReply::Ptr &object) constTgBot::TgTypeParser
parseGenericReply(const GenericReply::Ptr &object) constTgBot::TgTypeParser
parseInlineKeyboardButton(const InlineKeyboardButton::Ptr &object) constTgBot::TgTypeParser
parseInlineKeyboardMarkup(const InlineKeyboardMarkup::Ptr &object) constTgBot::TgTypeParser
parseInlineQuery(const InlineQuery::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResult(const InlineQueryResult::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultArticle(const InlineQueryResultArticle::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultAudio(const InlineQueryResultAudio::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedAudio(const InlineQueryResultCachedAudio::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedDocument(const InlineQueryResultCachedDocument::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedGif(const InlineQueryResultCachedGif::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedMpeg4Gif(const InlineQueryResultCachedMpeg4Gif::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedPhoto(const InlineQueryResultCachedPhoto::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedSticker(const InlineQueryResultCachedSticker::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedVideo(const InlineQueryResultCachedVideo::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultCachedVoice(const InlineQueryResultCachedVoice::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultContact(const InlineQueryResultContact::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultDocument(const InlineQueryResultDocument::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultGame(const InlineQueryResultGame::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultGif(const InlineQueryResultGif::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultLocation(const InlineQueryResultLocation::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultMpeg4Gif(const InlineQueryResultMpeg4Gif::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultPhoto(const InlineQueryResultPhoto::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultVenue(const InlineQueryResultVenue::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultVideo(const InlineQueryResultVideo::Ptr &object) constTgBot::TgTypeParser
parseInlineQueryResultVoice(const InlineQueryResultVoice::Ptr &object) constTgBot::TgTypeParser
parseInputContactMessageContent(const InputContactMessageContent::Ptr &object) constTgBot::TgTypeParser
parseInputLocationMessageContent(const InputLocationMessageContent::Ptr &object) constTgBot::TgTypeParser
parseInputMessageContent(const InputMessageContent::Ptr &object) constTgBot::TgTypeParser
parseInputTextMessageContent(const InputTextMessageContent::Ptr &object) constTgBot::TgTypeParser
parseInputVenueMessageContent(const InputVenueMessageContent::Ptr &object) constTgBot::TgTypeParser
parseJson(const std::string &json) constTgBot::TgTypeParserinline
parseJsonAndGet2DArray(JsonToTgTypeFunc< T > parseFunc, const boost::property_tree::ptree &data, const std::string &keyName) constTgBot::TgTypeParserinline
parseJsonAndGetArray(JsonToTgTypeFunc< T > parseFunc, const boost::property_tree::ptree &data) constTgBot::TgTypeParserinline
parseJsonAndGetArray(std::function< T(const boost::property_tree::ptree &)> parseFunc, const boost::property_tree::ptree &data, const std::string &keyName) constTgBot::TgTypeParserinline
parseJsonAndGetArray(JsonToTgTypeFunc< T > parseFunc, const boost::property_tree::ptree &data, const std::string &keyName) constTgBot::TgTypeParserinline
parseJsonAndGetAudio(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetCallbackQuery(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetChat(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetChatMember(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetChosenInlineResult(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetContact(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetDocument(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetEntity(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetFile(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetForceReply(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetGenericReply(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineKeyboardButton(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineKeyboardMarkup(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQuery(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResult(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultArticle(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultAudio(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedAudio(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedDocument(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedGif(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedMpeg4Gif(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedPhoto(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedSticker(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedVideo(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultCachedVoice(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultContact(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultDocument(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultGame(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultGif(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultLocation(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultMpeg4Gif(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultPhoto(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultVenue(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultVideo(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInlineQueryResultVoice(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInputContactMessageContent(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInputLocationMessageContent(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInputMessageContent(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInputTextMessageContent(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetInputVenueMessageContent(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetKeyboardButton(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetLocation(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetMessage(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetPhotoSize(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetReplyKeyboardMarkup(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetReplyKeyboardRemove(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetResponseParameters(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetSticker(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetUpdate(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetUser(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetUserProfilePhotos(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetVideo(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseJsonAndGetWebhookInfo(const boost::property_tree::ptree &data) constTgBot::TgTypeParser
parseKeyboardButton(const KeyboardButton::Ptr &object) constTgBot::TgTypeParser
parseLocation(const Location::Ptr &object) constTgBot::TgTypeParser
parseMessage(const Message::Ptr &object) constTgBot::TgTypeParser
parsePhotoSize(const PhotoSize::Ptr &object) constTgBot::TgTypeParser
parseReplyKeyboardMarkup(const ReplyKeyboardMarkup::Ptr &object) constTgBot::TgTypeParser
parseReplyKeyboardRemove(const ReplyKeyboardRemove::Ptr &object) constTgBot::TgTypeParser
parseResponseParameters(const ResponseParameters::Ptr &object) constTgBot::TgTypeParser
parseSticker(const Sticker::Ptr &object) constTgBot::TgTypeParser
parseUpdate(const Update::Ptr &object) constTgBot::TgTypeParser
parseUser(const User::Ptr &object) constTgBot::TgTypeParser
parseUserProfilePhotos(const UserProfilePhotos::Ptr &object) constTgBot::TgTypeParser
parseVideo(const Video::Ptr &object) constTgBot::TgTypeParser
parseWebhookInfo(const WebhookInfo::Ptr &object) constTgBot::TgTypeParser
TgTypeToJsonFunc typedefTgBot::TgTypeParser
tryParseJson(JsonToTgTypeFunc< T > parseFunc, const boost::property_tree::ptree &data, const std::string &keyName) constTgBot::TgTypeParserinline
+
+ + + + diff --git a/docs/df/d32/class_tg_bot_1_1_contact.html b/docs/df/d32/class_tg_bot_1_1_contact.html new file mode 100644 index 0000000..e15c9eb --- /dev/null +++ b/docs/df/d32/class_tg_bot_1_1_contact.html @@ -0,0 +1,214 @@ + + + + + + + +tgbot-cpp: TgBot::Contact Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::Contact Class Reference
+
+
+ +

#include <Contact.h>

+ + + + +

+Public Types

typedef std::shared_ptr< ContactPtr
 
+ + + + + + + + + +

+Public Attributes

std::string phoneNumber
 
std::string firstName
 
std::string lastName
 
std::string userId
 
+

Detailed Description

+

This object represents a phone contact.

+ +

Definition at line 35 of file Contact.h.

+

Member Typedef Documentation

+ +

◆ Ptr

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

Definition at line 38 of file Contact.h.

+ +
+
+

Member Data Documentation

+ +

◆ firstName

+ +
+
+ + + + +
std::string TgBot::Contact::firstName
+
+

Contact's first name.

+ +

Definition at line 48 of file Contact.h.

+ +
+
+ +

◆ lastName

+ +
+
+ + + + +
std::string TgBot::Contact::lastName
+
+

Optional. Contact's last name.

+ +

Definition at line 53 of file Contact.h.

+ +
+
+ +

◆ phoneNumber

+ +
+
+ + + + +
std::string TgBot::Contact::phoneNumber
+
+

Contact's phone number.

+ +

Definition at line 43 of file Contact.h.

+ +
+
+ +

◆ userId

+ +
+
+ + + + +
std::string TgBot::Contact::userId
+
+

Optional. Contact's user identifier in Telegram.

+ +

Definition at line 58 of file Contact.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/df/d32/class_tg_bot_1_1_contact.js b/docs/df/d32/class_tg_bot_1_1_contact.js new file mode 100644 index 0000000..2904ddc --- /dev/null +++ b/docs/df/d32/class_tg_bot_1_1_contact.js @@ -0,0 +1,8 @@ +var class_tg_bot_1_1_contact = +[ + [ "Ptr", "df/d32/class_tg_bot_1_1_contact.html#a43915fd39dc9ef11a5f8684512ce5e7b", null ], + [ "firstName", "df/d32/class_tg_bot_1_1_contact.html#a81956d457d30f743bcb74dfbe1635bc8", null ], + [ "lastName", "df/d32/class_tg_bot_1_1_contact.html#acece1a697b1e94ba95e5a4b161f7e2d3", null ], + [ "phoneNumber", "df/d32/class_tg_bot_1_1_contact.html#ada9f5461d2dd84b547cf563db624ff28", null ], + [ "userId", "df/d32/class_tg_bot_1_1_contact.html#a35e56ce0b16eb1119431043dccd8056b", null ] +]; \ No newline at end of file diff --git a/docs/df/d40/class_tg_bot_1_1_user_profile_photos.html b/docs/df/d40/class_tg_bot_1_1_user_profile_photos.html new file mode 100644 index 0000000..7adf1de --- /dev/null +++ b/docs/df/d40/class_tg_bot_1_1_user_profile_photos.html @@ -0,0 +1,176 @@ + + + + + + + +tgbot-cpp: TgBot::UserProfilePhotos Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::UserProfilePhotos Class Reference
+
+
+ +

#include <UserProfilePhotos.h>

+ + + + +

+Public Types

typedef std::shared_ptr< UserProfilePhotosPtr
 
+ + + + + +

+Public Attributes

int32_t totalCount
 
std::vector< std::vector< PhotoSize::Ptr > > photos
 
+

Detailed Description

+

This object represent a user's profile pictures.

+ +

Definition at line 37 of file UserProfilePhotos.h.

+

Member Typedef Documentation

+ +

◆ Ptr

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

Definition at line 40 of file UserProfilePhotos.h.

+ +
+
+

Member Data Documentation

+ +

◆ photos

+ +
+
+ + + + +
std::vector<std::vector<PhotoSize::Ptr> > TgBot::UserProfilePhotos::photos
+
+

Requested profile pictures (in up to 4 sizes each).

+ +

Definition at line 50 of file UserProfilePhotos.h.

+ +
+
+ +

◆ totalCount

+ +
+
+ + + + +
int32_t TgBot::UserProfilePhotos::totalCount
+
+

Total number of profile pictures the target user has.

+ +

Definition at line 45 of file UserProfilePhotos.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/df/d40/class_tg_bot_1_1_user_profile_photos.js b/docs/df/d40/class_tg_bot_1_1_user_profile_photos.js new file mode 100644 index 0000000..4d90688 --- /dev/null +++ b/docs/df/d40/class_tg_bot_1_1_user_profile_photos.js @@ -0,0 +1,6 @@ +var class_tg_bot_1_1_user_profile_photos = +[ + [ "Ptr", "df/d40/class_tg_bot_1_1_user_profile_photos.html#a734352c5b115ea29e639f01462187d55", null ], + [ "photos", "df/d40/class_tg_bot_1_1_user_profile_photos.html#a66b1e0c0b5b462ab8087ce05b0311f16", null ], + [ "totalCount", "df/d40/class_tg_bot_1_1_user_profile_photos.html#a33bfd559f54c4c8bf214698392473675", null ] +]; \ No newline at end of file diff --git a/docs/df/d4d/_generic_reply_8h.html b/docs/df/d4d/_generic_reply_8h.html new file mode 100644 index 0000000..2b65fc1 --- /dev/null +++ b/docs/df/d4d/_generic_reply_8h.html @@ -0,0 +1,115 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/GenericReply.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
GenericReply.h File Reference
+
+
+
#include <memory>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::GenericReply
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/d4d/_generic_reply_8h_source.html b/docs/df/d4d/_generic_reply_8h_source.html new file mode 100644 index 0000000..79bd18d --- /dev/null +++ b/docs/df/d4d/_generic_reply_8h_source.html @@ -0,0 +1,102 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/GenericReply.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
GenericReply.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_GENERICREPLY_H
24 #define TGBOT_CPP_GENERICREPLY_H
25 
26 #include <memory>
27 
28 namespace TgBot {
29 
34 class GenericReply {
35 
36 public:
37  typedef std::shared_ptr<GenericReply> Ptr;
38 
39  virtual ~GenericReply() { }
40 };
41 
42 }
43 
44 #endif //TGBOT_CPP_GENERICREPLY_H
Definition: Api.h:44
+ +
virtual ~GenericReply()
Definition: GenericReply.h:39
+
std::shared_ptr< GenericReply > Ptr
Definition: GenericReply.h:37
+
+
+ + + + diff --git a/docs/df/d52/class_tg_bot_1_1_inline_query_result_cached_voice-members.html b/docs/df/d52/class_tg_bot_1_1_inline_query_result_cached_voice-members.html new file mode 100644 index 0000000..16ea989 --- /dev/null +++ b/docs/df/d52/class_tg_bot_1_1_inline_query_result_cached_voice-members.html @@ -0,0 +1,112 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::InlineQueryResultCachedVoice Member List
+
+ +
+ + + + diff --git a/docs/df/d55/class_tg_bot_1_1_inline_keyboard_button-members.html b/docs/df/d55/class_tg_bot_1_1_inline_keyboard_button-members.html new file mode 100644 index 0000000..ef65773 --- /dev/null +++ b/docs/df/d55/class_tg_bot_1_1_inline_keyboard_button-members.html @@ -0,0 +1,106 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::InlineKeyboardButton Member List
+
+ +
+ + + + diff --git a/docs/df/d65/_tg_webhook_tcp_server_8h.html b/docs/df/d65/_tg_webhook_tcp_server_8h.html new file mode 100644 index 0000000..9be1dca --- /dev/null +++ b/docs/df/d65/_tg_webhook_tcp_server_8h.html @@ -0,0 +1,115 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/TgWebhookTcpServer.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgWebhookTcpServer.h File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::TgWebhookTcpServer
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/d65/_tg_webhook_tcp_server_8h_source.html b/docs/df/d65/_tg_webhook_tcp_server_8h_source.html new file mode 100644 index 0000000..4495a2e --- /dev/null +++ b/docs/df/d65/_tg_webhook_tcp_server_8h_source.html @@ -0,0 +1,108 @@ + + + + + + + +tgbot-cpp: include/tgbot/net/TgWebhookTcpServer.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgWebhookTcpServer.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_TGWEBHOOKTCPSERVER_H
24 #define TGBOT_TGWEBHOOKTCPSERVER_H
25 
27 
28 namespace TgBot {
29 
34 class TgWebhookTcpServer : public TgWebhookServer<boost::asio::ip::tcp> {
35 
36 public:
37  TgWebhookTcpServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>> acceptor, const std::string& path, EventHandler* eventHandler) = delete;
38 
39  TgWebhookTcpServer(unsigned short port, const std::string& path, const EventHandler* eventHandler) :
40  TgWebhookServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>>(new boost::asio::ip::tcp::acceptor(_ioService, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port))), path, eventHandler)
41  {
42  }
43 
44  TgWebhookTcpServer(const std::string& path, const Bot& bot) : TgWebhookTcpServer(path, &bot.getEventHandler()) {
45  }
46 };
47 
48 }
49 
50 #endif //TGBOT_TGWEBHOOKTCPSERVER_H
TgWebhookTcpServer(std::shared_ptr< boost::asio::basic_socket_acceptor< boost::asio::ip::tcp >> acceptor, const std::string &path, EventHandler *eventHandler)=delete
+
Definition: Api.h:44
+
TgWebhookTcpServer(const std::string &path, const Bot &bot)
+ + +
Definition: Bot.h:38
+ +
TgWebhookTcpServer(unsigned short port, const std::string &path, const EventHandler *eventHandler)
+ +
boost::asio::io_service _ioService
Definition: HttpServer.h:95
+
+
+ + + + diff --git a/docs/df/d6f/_input_location_message_content_8h.html b/docs/df/d6f/_input_location_message_content_8h.html new file mode 100644 index 0000000..5b61d1f --- /dev/null +++ b/docs/df/d6f/_input_location_message_content_8h.html @@ -0,0 +1,115 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/InputLocationMessageContent.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
InputLocationMessageContent.h File Reference
+
+
+
#include <memory>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::InputLocationMessageContent
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/d6f/_input_location_message_content_8h_source.html b/docs/df/d6f/_input_location_message_content_8h_source.html new file mode 100644 index 0000000..d670d37 --- /dev/null +++ b/docs/df/d6f/_input_location_message_content_8h_source.html @@ -0,0 +1,106 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/InputLocationMessageContent.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
InputLocationMessageContent.h
+
+
+Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 //
4 
5 #ifndef TGBOT_INPUTLOCATIONMESSAGECONTENT_H
6 #define TGBOT_INPUTLOCATIONMESSAGECONTENT_H
7 
8 #include <memory>
9 
10 namespace TgBot {
11 
17 public:
18  typedef std::shared_ptr<InputLocationMessageContent> Ptr;
19 
21  InputMessageContent("InputLocationMessageContent")
22  {}
23 
27  float latitude;
28 
32  float longitude;
33 
35 };
36 }
37 
38 #endif //TGBOT_INPUTLOCATIONMESSAGECONTENT_H
std::shared_ptr< InputLocationMessageContent > Ptr
+
Definition: Api.h:44
+ + + + + + +
+
+ + + + diff --git a/docs/df/d88/_contact_8h.html b/docs/df/d88/_contact_8h.html new file mode 100644 index 0000000..9c72459 --- /dev/null +++ b/docs/df/d88/_contact_8h.html @@ -0,0 +1,116 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/Contact.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Contact.h File Reference
+
+
+
#include <string>
+#include <memory>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::Contact
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/d88/_contact_8h_source.html b/docs/df/d88/_contact_8h_source.html new file mode 100644 index 0000000..7a8308f --- /dev/null +++ b/docs/df/d88/_contact_8h_source.html @@ -0,0 +1,105 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/Contact.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Contact.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_CONTACT_H
24 #define TGBOT_CPP_CONTACT_H
25 
26 #include <string>
27 #include <memory>
28 
29 namespace TgBot {
30 
35 class Contact {
36 
37 public:
38  typedef std::shared_ptr<Contact> Ptr;
39 
43  std::string phoneNumber;
44 
48  std::string firstName;
49 
53  std::string lastName;
54 
58  std::string userId;
59 };
60 
61 }
62 
63 #endif //TGBOT_CPP_CONTACT_H
std::string userId
Definition: Contact.h:58
+
Definition: Api.h:44
+
std::string firstName
Definition: Contact.h:48
+
std::string phoneNumber
Definition: Contact.h:43
+ +
std::shared_ptr< Contact > Ptr
Definition: Contact.h:38
+
std::string lastName
Definition: Contact.h:53
+
+
+ + + + diff --git a/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.html b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.html new file mode 100644 index 0000000..ebd7be7 --- /dev/null +++ b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.html @@ -0,0 +1,365 @@ + + + + + + + +tgbot-cpp: TgBot::InlineQueryResultVenue Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::InlineQueryResultVenue Class Reference
+
+
+ +

#include <InlineQueryResultVenue.h>

+
+Inheritance diagram for TgBot::InlineQueryResultVenue:
+
+
+ + +TgBot::InlineQueryResult + +
+ + + + + + + +

+Public Types

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

+Public Member Functions

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

+Public Attributes

float latitude
 
float longitude
 
std::string address
 
std::string foursquareId
 
std::string thumbUrl
 
int32_t thumbWidth
 
int32_t thumbHeight
 
- 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 a venue.

+ +

Definition at line 19 of file InlineQueryResultVenue.h.

+

Member Typedef Documentation

+ +

◆ Ptr

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

Definition at line 23 of file InlineQueryResultVenue.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ InlineQueryResultVenue()

+ +
+
+ + + + + +
+ + + + + + + +
TgBot::InlineQueryResultVenue::InlineQueryResultVenue ()
+
+inline
+
+ +

Definition at line 25 of file InlineQueryResultVenue.h.

+ +
+
+

Member Data Documentation

+ +

◆ address

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultVenue::address
+
+

Address of the venue

+ +

Definition at line 44 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ foursquareId

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultVenue::foursquareId
+
+

Optional. Foursquare identifier of the venue if known

+ +

Definition at line 49 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ latitude

+ +
+
+ + + + +
float TgBot::InlineQueryResultVenue::latitude
+
+

Latitude of the venue location in degrees

+ +

Definition at line 34 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ longitude

+ +
+
+ + + + +
float TgBot::InlineQueryResultVenue::longitude
+
+

Longitude of the venue location in degrees

+ +

Definition at line 39 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ thumbHeight

+ +
+
+ + + + +
int32_t TgBot::InlineQueryResultVenue::thumbHeight
+
+

Optinal. Thumbnail height

+ +

Definition at line 64 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ thumbUrl

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultVenue::thumbUrl
+
+

Optional. Url of the thumbnail for the result

+ +

Definition at line 54 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ thumbWidth

+ +
+
+ + + + +
int32_t TgBot::InlineQueryResultVenue::thumbWidth
+
+

Optional. Thumbnail width.

+ +

Definition at line 59 of file InlineQueryResultVenue.h.

+ +
+
+ +

◆ TYPE

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

Definition at line 21 of file InlineQueryResultVenue.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.js b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.js new file mode 100644 index 0000000..7584273 --- /dev/null +++ b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.js @@ -0,0 +1,12 @@ +var class_tg_bot_1_1_inline_query_result_venue = +[ + [ "Ptr", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a216e83019cb0df61e4bc74f4499e0eb5", null ], + [ "InlineQueryResultVenue", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a7a696bc221c372c4cff2633159a5dac1", null ], + [ "address", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a065ae48c35a1fccad49e1dd9c143443b", null ], + [ "foursquareId", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a046d6213f587de9c4acbe7bc2eb194d9", null ], + [ "latitude", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a842e5f5e15da3e24e81f8d68ec00ad97", null ], + [ "longitude", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a385d6861f463a496af03accc31143a4c", null ], + [ "thumbHeight", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a284c445f7142d1f83fe78c22681747c2", null ], + [ "thumbUrl", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a7c54d597c7b13147109ca777364abf90", null ], + [ "thumbWidth", "df/d8f/class_tg_bot_1_1_inline_query_result_venue.html#a88471f6acad35d4d45641572e4730517", null ] +]; \ No newline at end of file diff --git a/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.png b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.png new file mode 100644 index 0000000..70e11ae Binary files /dev/null and b/docs/df/d8f/class_tg_bot_1_1_inline_query_result_venue.png differ diff --git a/docs/df/dae/class_tg_bot_1_1_http_parser-members.html b/docs/df/dae/class_tg_bot_1_1_http_parser-members.html new file mode 100644 index 0000000..068b047 --- /dev/null +++ b/docs/df/dae/class_tg_bot_1_1_http_parser-members.html @@ -0,0 +1,110 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::HttpParser Member List
+
+
+ +

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

+ + + + + + + + + + + +
generateMultipartBoundary(const std::vector< HttpReqArg > &args)TgBot::HttpParser
generateMultipartFormData(const std::vector< HttpReqArg > &args, const std::string &bondary)TgBot::HttpParser
generateRequest(const Url &url, const std::vector< HttpReqArg > &args, bool isKeepAlive=false)TgBot::HttpParser
generateResponse(const std::string &data, const std::string &mimeType="text/plain", short unsigned statusCode=200, const std::string &statusStr="OK", bool isKeepAlive=false)TgBot::HttpParser
generateWwwFormUrlencoded(const std::vector< HttpReqArg > &args)TgBot::HttpParser
getInstance()TgBot::HttpParserstatic
parseRequest(const std::string &data, std::map< std::string, std::string > &headers)TgBot::HttpParserinline
parseRequest(const std::string &data)TgBot::HttpParserinline
parseResponse(const std::string &data, std::map< std::string, std::string > &headers)TgBot::HttpParserinline
parseResponse(const std::string &data)TgBot::HttpParserinline
+
+ + + + diff --git a/docs/df/dcb/_event_broadcaster_8h.html b/docs/df/dcb/_event_broadcaster_8h.html new file mode 100644 index 0000000..03f6b7c --- /dev/null +++ b/docs/df/dcb/_event_broadcaster_8h.html @@ -0,0 +1,122 @@ + + + + + + + +tgbot-cpp: include/tgbot/EventBroadcaster.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
EventBroadcaster.h File Reference
+
+
+
#include <string>
+#include <functional>
+#include <vector>
+#include <map>
+#include "tgbot/types/Message.h"
+#include "tgbot/types/InlineQuery.h"
+#include "tgbot/types/ChosenInlineResult.h"
+#include "tgbot/types/CallbackQuery.h"
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::EventBroadcaster
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/df/dcb/_event_broadcaster_8h_source.html b/docs/df/dcb/_event_broadcaster_8h_source.html new file mode 100644 index 0000000..dad32cd --- /dev/null +++ b/docs/df/dcb/_event_broadcaster_8h_source.html @@ -0,0 +1,120 @@ + + + + + + + +tgbot-cpp: include/tgbot/EventBroadcaster.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
EventBroadcaster.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_EVENTBROADCASTER_H
24 #define TGBOT_EVENTBROADCASTER_H
25 
26 #include <string>
27 #include <functional>
28 #include <vector>
29 #include <map>
30 
31 #include "tgbot/types/Message.h"
35 
36 namespace TgBot {
37 
38 class EventHandler;
39 
45 
46 friend EventHandler;
47 
48 public:
49  typedef std::function<void (const Message::Ptr&)> MessageListener;
50  typedef std::function<void (const InlineQuery::Ptr&)> InlineQueryListener;
51  typedef std::function<void (const ChosenInlineResult::Ptr&)> ChosenInlineResultListener;
52  typedef std::function<void (const CallbackQuery::Ptr&)> CallbackQueryListener;
53 
58  inline void onAnyMessage(const MessageListener& listener) {
59  _onAnyMessageListeners.push_back(listener);
60  }
61 
67  inline void onCommand(const std::string& commandName, const MessageListener& listener) {
68  _onCommandListeners[commandName] = listener;
69  }
70 
75  inline void onUnknownCommand(const MessageListener& listener) {
76  _onUnknownCommandListeners.push_back(listener);
77  }
78 
83  inline void onNonCommandMessage(const MessageListener& listener) {
84  _onNonCommandMessageListeners.push_back(listener);
85  }
86 
91  inline void onInlineQuery(const InlineQueryListener& listener) {
92  _onInlineQueryListeners.push_back(listener);
93  }
94 
99  inline void onChosenInlineResult(const ChosenInlineResultListener& listener){
100  _onChosenInlineResultListeners.push_back(listener);
101  }
102 
103  inline void onCallbackQuery(const CallbackQueryListener& listener){
104  _onCallbackQueryListeners.push_back(listener);
105  }
106 
107 private:
108  template<typename ListenerType, typename ObjectType>
109  inline void broadcast(const std::vector<ListenerType>& listeners, const ObjectType& object) const {
110  if (!object)
111  return;
112 
113  for (const ListenerType& item : listeners) {
114  item(object);
115  }
116  }
117 
118  inline void broadcastAnyMessage(const Message::Ptr& message) const {
119  broadcast<MessageListener, Message::Ptr>(_onAnyMessageListeners, message);
120  }
121 
122  inline bool broadcastCommand(const std::string command, const Message::Ptr& message) const {
123  std::map<std::string, MessageListener>::const_iterator iter = _onCommandListeners.find(command);
124  if (iter == _onCommandListeners.end()) {
125  return false;
126  }
127  iter->second(message);
128  return true;
129  }
130 
131  inline void broadcastUnknownCommand(const Message::Ptr& message) const {
132  broadcast<MessageListener, Message::Ptr>(_onUnknownCommandListeners, message);
133  }
134 
135  inline void broadcastNonCommandMessage(const Message::Ptr& message) const {
136  broadcast<MessageListener, Message::Ptr>(_onNonCommandMessageListeners, message);
137  }
138 
139  inline void broadcastInlineQuery(const InlineQuery::Ptr& query) const {
140  broadcast<InlineQueryListener, InlineQuery::Ptr>(_onInlineQueryListeners, query);
141  }
142 
143  inline void broadcastChosenInlineResult(const ChosenInlineResult::Ptr& result) const {
144  broadcast<ChosenInlineResultListener, ChosenInlineResult::Ptr>(_onChosenInlineResultListeners, result);
145  }
146 
147  inline void broadcastCallbackQuery(const CallbackQuery::Ptr& result) const {
148  broadcast<CallbackQueryListener, CallbackQuery::Ptr>(_onCallbackQueryListeners, result);
149  }
150 
151  std::vector<MessageListener> _onAnyMessageListeners;
152  std::map<std::string, MessageListener> _onCommandListeners;
153  std::vector<MessageListener> _onUnknownCommandListeners;
154  std::vector<MessageListener> _onNonCommandMessageListeners;
155  std::vector<InlineQueryListener> _onInlineQueryListeners;
156  std::vector<ChosenInlineResultListener> _onChosenInlineResultListeners;
157  std::vector<CallbackQueryListener> _onCallbackQueryListeners;
158 };
159 
160 }
161 
162 #endif //TGBOT_EVENTBROADCASTER_H
void onAnyMessage(const MessageListener &listener)
+ +
std::function< void(const Message::Ptr &)> MessageListener
+
std::shared_ptr< CallbackQuery > Ptr
Definition: CallbackQuery.h:22
+
Definition: Api.h:44
+ + +
std::shared_ptr< Message > Ptr
Definition: Message.h:52
+
std::function< void(const CallbackQuery::Ptr &)> CallbackQueryListener
+ +
std::shared_ptr< ChosenInlineResult > Ptr
+
void onInlineQuery(const InlineQueryListener &listener)
+
std::function< void(const ChosenInlineResult::Ptr &)> ChosenInlineResultListener
+
void onCallbackQuery(const CallbackQueryListener &listener)
+
void onUnknownCommand(const MessageListener &listener)
+
std::function< void(const InlineQuery::Ptr &)> InlineQueryListener
+
void onCommand(const std::string &commandName, const MessageListener &listener)
+
void onNonCommandMessage(const MessageListener &listener)
+ +
void onChosenInlineResult(const ChosenInlineResultListener &listener)
+
std::shared_ptr< InlineQuery > Ptr
Definition: InlineQuery.h:22
+ +
+
+ + + + diff --git a/docs/df/dde/class_tg_bot_1_1_webhook_info-members.html b/docs/df/dde/class_tg_bot_1_1_webhook_info-members.html new file mode 100644 index 0000000..79c64d7 --- /dev/null +++ b/docs/df/dde/class_tg_bot_1_1_webhook_info-members.html @@ -0,0 +1,108 @@ + + + + + + + +tgbot-cpp: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TgBot::WebhookInfo Member List
+
+ +
+ + + + diff --git a/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html new file mode 100644 index 0000000..49123a4 --- /dev/null +++ b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html @@ -0,0 +1,270 @@ + + + + + + + +tgbot-cpp: TgBot::InlineQueryResultCachedPhoto Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::InlineQueryResultCachedPhoto Class Reference
+
+
+ +

#include <InlineQueryResultCachedPhoto.h>

+
+Inheritance diagram for TgBot::InlineQueryResultCachedPhoto:
+
+
+ + +TgBot::InlineQueryResult + +
+ + + + + + + +

+Public Types

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

+Public Member Functions

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

+Public Attributes

std::string photoFileId
 
std::string description
 
- 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 a link to a photo stored on the Telegram servers.

+ +

Definition at line 19 of file InlineQueryResultCachedPhoto.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ +

Definition at line 23 of file InlineQueryResultCachedPhoto.h.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ InlineQueryResultCachedPhoto()

+ +
+
+ + + + + +
+ + + + + + + +
TgBot::InlineQueryResultCachedPhoto::InlineQueryResultCachedPhoto ()
+
+inline
+
+ +

Definition at line 25 of file InlineQueryResultCachedPhoto.h.

+ +
+
+

Member Data Documentation

+ +

◆ description

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultCachedPhoto::description
+
+

Optional. Short description of the result

+ +

Definition at line 37 of file InlineQueryResultCachedPhoto.h.

+ +
+
+ +

◆ photoFileId

+ +
+
+ + + + +
std::string TgBot::InlineQueryResultCachedPhoto::photoFileId
+
+

A valid file identifier of the photo

+ +

Definition at line 32 of file InlineQueryResultCachedPhoto.h.

+ +
+
+ +

◆ TYPE

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

Definition at line 21 of file InlineQueryResultCachedPhoto.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.js b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.js new file mode 100644 index 0000000..ef7b9b5 --- /dev/null +++ b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.js @@ -0,0 +1,7 @@ +var class_tg_bot_1_1_inline_query_result_cached_photo = +[ + [ "Ptr", "df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html#a1c592e3dea0aae88ccd8244f70b2e8d8", null ], + [ "InlineQueryResultCachedPhoto", "df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html#afcb0d2106b2d57b2e0f77679258adbe7", null ], + [ "description", "df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html#ae3ee1094fb0d586145265557a4967472", null ], + [ "photoFileId", "df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.html#ab565bf88ec7ebb111aa0d628e20031ac", null ] +]; \ No newline at end of file diff --git a/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.png b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.png new file mode 100644 index 0000000..d6cd4f6 Binary files /dev/null and b/docs/df/ddf/class_tg_bot_1_1_inline_query_result_cached_photo.png differ -- cgit v1.2.3