diff options
Diffstat (limited to 'docs/_api_8h_source.html')
-rw-r--r-- | docs/_api_8h_source.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/_api_8h_source.html b/docs/_api_8h_source.html index 0cdcb75..677c909 100644 --- a/docs/_api_8h_source.html +++ b/docs/_api_8h_source.html @@ -83,11 +83,13 @@ $(document).ready(function(){initNavTree('_api_8h_source.html','');}); <div class="title">Api.h</div> </div> </div><!--header--> <div class="contents"> -<a href="_api_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2015 Oleg Morozenkov</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * of this software and associated documentation files (the "Software"), to deal</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * in the Software without restriction, including without limitation the rights</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef TGBOT_CPP_API_H</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define TGBOT_CPP_API_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <boost/property_tree/ptree.hpp></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_http_req_arg_8h.html">tgbot/net/HttpReqArg.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_user_8h.html">tgbot/types/User.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_message_8h.html">tgbot/types/Message.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="_generic_reply_8h.html">tgbot/types/GenericReply.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="_input_file_8h.html">tgbot/types/InputFile.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="_user_profile_photos_8h.html">tgbot/types/UserProfilePhotos.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="_update_8h.html">tgbot/types/Update.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="_inline_query_result_8h.html">tgbot/types/InlineQueryResult.h</a>"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="_venue_8h.html">tgbot/types/Venue.h</a>"</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "<a class="code" href="_webhook_info_8h.html">tgbot/types/WebhookInfo.h</a>"</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include "<a class="code" href="_chat_member_8h.html">tgbot/types/ChatMember.h</a>"</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="_file_8h.html">tgbot/types/File.h</a>"</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespace_tg_bot.html"> 44</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_tg_bot.html">TgBot</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_bot.html">Bot</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_tg_bot_1_1_api.html"> 52</a></span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_api.html">Api</a> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">typedef</span> std::shared_ptr<std::vector<std::string>> StringArrayPtr;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_tg_bot_1_1_api.html#afb5d57ac6b56fe83e7894e3b686c3339"> 56</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_bot.html">Bot</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="class_tg_bot_1_1_api.html#ac0e4615a8944c07e7db3811ee84f2a94">Api</a>(<span class="keyword">const</span> std::string& token);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="class_tg_bot_1_1_user.html#ae6ea24aef677abaaf0fd7d60adf5be79">User::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a566fcf52400de18737110edd7ab01535">getMe</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5efcfe0a1667c3574ea97018155e763e">sendMessage</a>(int64_t chatId, <span class="keyword">const</span> std::string& text, <span class="keywordtype">bool</span> disableWebPagePreview = <span class="keyword">false</span>, int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keyword">const</span> std::string& parseMode = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#acf5818100f3529706d8aa888f3922594">forwardMessage</a>(int64_t chatId, int64_t fromChatId, int32_t messageId, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5fd4787f1c4784763364da467ee939f5">sendPhoto</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> photo, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5fd4787f1c4784763364da467ee939f5">sendPhoto</a>(int64_t chatId, <span class="keyword">const</span> std::string& photoId, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a02516736a544239624cd78f9e00dd625">sendAudio</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> audio, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t duration = 0,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">const</span> std::string& performer = <span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& title = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a02516736a544239624cd78f9e00dd625">sendAudio</a>(int64_t chatId, <span class="keyword">const</span> std::string& audioId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t duration = 0,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">const</span> std::string& performer = <span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& title = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a3fecab4c02d4a768742a5c22b2e805f7">sendDocument</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> document, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a3fecab4c02d4a768742a5c22b2e805f7">sendDocument</a>(int64_t chatId, <span class="keyword">const</span> std::string& documentId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a837ece41c01aa9405c3951a870fa2ff1">sendSticker</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> sticker, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a837ece41c01aa9405c3951a870fa2ff1">sendSticker</a>(int64_t chatId, <span class="keyword">const</span> std::string& stickerId, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae48a4c5793721df8438d2c01962e0e2e">sendVideo</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> video, int32_t duration = 0, int32_t width = 0, int32_t height = 0, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae48a4c5793721df8438d2c01962e0e2e">sendVideo</a>(int64_t chatId, <span class="keyword">const</span> std::string& videoId, int32_t duration = 0, int32_t width = 0, int32_t height = 0, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aef36b31266345808a87d77ab1dfa12d4">sendVoice</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> voice, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, <span class="keywordtype">int</span> duration = 0, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aef36b31266345808a87d77ab1dfa12d4">sendVoice</a>(int64_t chatId, <span class="keyword">const</span> std::string& voiceId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, <span class="keywordtype">int</span> duration = 0, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a91ab4ca23c30bcb3064c114cb9d690ed">sendLocation</a>(int64_t chatId, <span class="keywordtype">float</span> latitude, <span class="keywordtype">float</span> longitude, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a483c9c374b6f42bceb66b0093bf1cb4f">sendVenue</a>(int64_t chatId, <span class="keywordtype">float</span> latitude, <span class="keywordtype">float</span> longitude, std::string title, std::string address, std::string foursquareId = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>, int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aa01ddbbf3eb706cf901a1f0abdb2aa3b">sendContact</a>(int64_t chatId, std::string phoneNumber, std::string firstName, std::string lastName = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordtype">void</span> <a class="code" href="class_tg_bot_1_1_api.html#a77fe17ad287f702bb021fc92575a0e2d">sendChatAction</a>(int64_t chatId, <span class="keyword">const</span> std::string& action) <span class="keyword">const</span>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="class_tg_bot_1_1_user_profile_photos.html#a734352c5b115ea29e639f01462187d55">UserProfilePhotos::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aa605f96bd5de1a3a432e14a160bac210">getUserProfilePhotos</a>(int32_t userId, int32_t offset = 0, int32_t limit = 100) <span class="keyword">const</span>;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#abff10c92fa22a812d5bc17a068413709">getFile</a>(int32_t fileId) <span class="keyword">const</span>;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a28d6bda0f615ff1c7063905eb61b5cde">leaveChat</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="class_tg_bot_1_1_chat.html#a9818e295b599a08b77abefb38de75e48">Chat::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ad042b4d7f03f45eb59acb68085faaa23">getChat</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  std::vector<ChatMember::Ptr> <a class="code" href="class_tg_bot_1_1_api.html#a2fd133b562c8bcad74d4b76e4fdbc5b8">getChatAdministrators</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  int32_t <a class="code" href="class_tg_bot_1_1_api.html#a018da546747f0d34a5fa3bdb6a715a07">getChatMembersCount</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <a class="code" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a648190cc90ed13172bc2327344d0e7f6">getChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a2f73414941d8bb67ff3721a674274bf8">answerCallbackQuery</a>(<span class="keyword">const</span> std::string & callbackQueryId, <span class="keyword">const</span> std::string & text=<span class="stringliteral">""</span>, <span class="keywordtype">bool</span> showAlert=<span class="keyword">false</span>, <span class="keyword">const</span> std::string &url=<span class="stringliteral">""</span>, int32_t cacheTime=0) <span class="keyword">const</span>;</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae748d3681b132b0cbd6a1a9080a4da2e">editMessageText</a>(<span class="keyword">const</span> std::string& text, int64_t chatId=0, int32_t messageId=0, <span class="keyword">const</span> std::string& inlineMessageId=<span class="stringliteral">""</span>,</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keyword">const</span> std::string& parseMode = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableWebPagePreview = <span class="keyword">false</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a8663d3b183eb53d6b7ca19791e55d7d7">editMessageCaption</a>(int64_t chatId = 0, int32_t messageId = 0, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keyword">const</span> std::string& inlineMessageId = <span class="stringliteral">""</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a9edd65a004e477580923216cf741af3f">editMessageReplyMarkup</a>(int64_t chatId = 0, int32_t messageId = 0, <span class="keyword">const</span> std::string& inlineMessageId = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  std::vector<Update::Ptr> <a class="code" href="class_tg_bot_1_1_api.html#abd10abcfaf859c63cab0526b8c9179c9">getUpdates</a>(int32_t offset = 0, int32_t limit = 100, int32_t timeout = 0, <span class="keyword">const</span> StringArrayPtr &allowedUpdates = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordtype">void</span> <a class="code" href="class_tg_bot_1_1_api.html#af961a33f53579fee24090059dab328ea">setWebhook</a>(<span class="keyword">const</span> std::string& url = <span class="stringliteral">""</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> certificate = <span class="keyword">nullptr</span>, int32_t maxConnection = 40, <span class="keyword">const</span> StringArrayPtr &allowedUpdates = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a8fbfde4234553c478987746c43b08e62">deleteWebhook</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <a class="code" href="class_tg_bot_1_1_webhook_info.html#a2280093713d1304207d8bba2204648d6">WebhookInfo::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a43bf35783ec4f9a03e46925e36fda24c">getWebhookInfo</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a430f9e036859250345d2125b7688a1f9">answerInlineQuery</a>(<span class="keyword">const</span> std::string& inlineQueryId, <span class="keyword">const</span> std::vector<InlineQueryResult::Ptr>& results,</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  int32_t cacheTime=300, <span class="keywordtype">bool</span> isPersonal=<span class="keyword">false</span>, <span class="keyword">const</span> std::string& nextOffset=<span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& switchPmText=<span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& switchPmParameter=<span class="stringliteral">""</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a07c9bb7aa68a66bec54dd9bcf97875d7">kickChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a44ea670c4eecdf100f60be3c90911eec">unbanChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  boost::property_tree::ptree sendRequest(<span class="keyword">const</span> std::string& method, <span class="keyword">const</span> std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keyword">const</span> std::string _token;</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> };</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> }</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="preprocessor">#endif //TGBOT_CPP_API_H</span></div><div class="ttc" id="class_tg_bot_1_1_api_html_ad042b4d7f03f45eb59acb68085faaa23"><div class="ttname"><a href="class_tg_bot_1_1_api.html#ad042b4d7f03f45eb59acb68085faaa23">TgBot::Api::getChat</a></div><div class="ttdeci">Chat::Ptr getChat(int64_t chatId) const</div></div> +<a href="_api_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2015 Oleg Morozenkov</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * of this software and associated documentation files (the "Software"), to deal</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * in the Software without restriction, including without limitation the rights</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef TGBOT_CPP_API_H</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define TGBOT_CPP_API_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <boost/property_tree/ptree.hpp></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_http_req_arg_8h.html">tgbot/net/HttpReqArg.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_user_8h.html">tgbot/types/User.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_message_8h.html">tgbot/types/Message.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="_generic_reply_8h.html">tgbot/types/GenericReply.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="_input_file_8h.html">tgbot/types/InputFile.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="_user_profile_photos_8h.html">tgbot/types/UserProfilePhotos.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="_update_8h.html">tgbot/types/Update.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="_inline_query_result_8h.html">tgbot/types/InlineQueryResult.h</a>"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="_venue_8h.html">tgbot/types/Venue.h</a>"</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "<a class="code" href="_webhook_info_8h.html">tgbot/types/WebhookInfo.h</a>"</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include "<a class="code" href="_chat_member_8h.html">tgbot/types/ChatMember.h</a>"</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="_file_8h.html">tgbot/types/File.h</a>"</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespace_tg_bot.html"> 44</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_tg_bot.html">TgBot</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_bot.html">Bot</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_tg_bot_1_1_api.html"> 52</a></span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_api.html">Api</a> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">typedef</span> std::shared_ptr<std::vector<std::string>> StringArrayPtr;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_tg_bot_1_1_api.html#afb5d57ac6b56fe83e7894e3b686c3339"> 56</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_tg_bot_1_1_bot.html">Bot</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="class_tg_bot_1_1_api.html#ac0e4615a8944c07e7db3811ee84f2a94">Api</a>(<span class="keyword">const</span> std::string& token);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="class_tg_bot_1_1_user.html#ae6ea24aef677abaaf0fd7d60adf5be79">User::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a566fcf52400de18737110edd7ab01535">getMe</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5efcfe0a1667c3574ea97018155e763e">sendMessage</a>(int64_t chatId, <span class="keyword">const</span> std::string& text, <span class="keywordtype">bool</span> disableWebPagePreview = <span class="keyword">false</span>, int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keyword">const</span> std::string& parseMode = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#acf5818100f3529706d8aa888f3922594">forwardMessage</a>(int64_t chatId, int64_t fromChatId, int32_t messageId, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5fd4787f1c4784763364da467ee939f5">sendPhoto</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> photo, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a5fd4787f1c4784763364da467ee939f5">sendPhoto</a>(int64_t chatId, <span class="keyword">const</span> std::string& photoId, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a02516736a544239624cd78f9e00dd625">sendAudio</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> audio, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t duration = 0,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">const</span> std::string& performer = <span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& title = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a02516736a544239624cd78f9e00dd625">sendAudio</a>(int64_t chatId, <span class="keyword">const</span> std::string& audioId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t duration = 0,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">const</span> std::string& performer = <span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& title = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a3fecab4c02d4a768742a5c22b2e805f7">sendDocument</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> document, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a3fecab4c02d4a768742a5c22b2e805f7">sendDocument</a>(int64_t chatId, <span class="keyword">const</span> std::string& documentId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a837ece41c01aa9405c3951a870fa2ff1">sendSticker</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> sticker, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a837ece41c01aa9405c3951a870fa2ff1">sendSticker</a>(int64_t chatId, <span class="keyword">const</span> std::string& stickerId, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae48a4c5793721df8438d2c01962e0e2e">sendVideo</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> video, int32_t duration = 0, int32_t width = 0, int32_t height = 0, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae48a4c5793721df8438d2c01962e0e2e">sendVideo</a>(int64_t chatId, <span class="keyword">const</span> std::string& videoId, int32_t duration = 0, int32_t width = 0, int32_t height = 0, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aef36b31266345808a87d77ab1dfa12d4">sendVoice</a>(int64_t chatId, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> voice, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, <span class="keywordtype">int</span> duration = 0, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aef36b31266345808a87d77ab1dfa12d4">sendVoice</a>(int64_t chatId, <span class="keyword">const</span> std::string& voiceId, <span class="keyword">const</span> std::string &caption = <span class="stringliteral">""</span>, <span class="keywordtype">int</span> duration = 0, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a91ab4ca23c30bcb3064c114cb9d690ed">sendLocation</a>(int64_t chatId, <span class="keywordtype">float</span> latitude, <span class="keywordtype">float</span> longitude, int32_t replyToMessageId = 0,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>(), <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a483c9c374b6f42bceb66b0093bf1cb4f">sendVenue</a>(int64_t chatId, <span class="keywordtype">float</span> latitude, <span class="keywordtype">float</span> longitude, std::string title, std::string address, std::string foursquareId = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>, int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aa01ddbbf3eb706cf901a1f0abdb2aa3b">sendContact</a>(int64_t chatId, std::string phoneNumber, std::string firstName, std::string lastName = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableNotification = <span class="keyword">false</span>,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  int32_t replyToMessageId = 0, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordtype">void</span> <a class="code" href="class_tg_bot_1_1_api.html#a77fe17ad287f702bb021fc92575a0e2d">sendChatAction</a>(int64_t chatId, <span class="keyword">const</span> std::string& action) <span class="keyword">const</span>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="class_tg_bot_1_1_user_profile_photos.html#a734352c5b115ea29e639f01462187d55">UserProfilePhotos::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#aa605f96bd5de1a3a432e14a160bac210">getUserProfilePhotos</a>(int32_t userId, int32_t offset = 0, int32_t limit = 100) <span class="keyword">const</span>;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ac50bdd50bf0cf5a211e699925759ebc1">getFile</a>(<span class="keyword">const</span> std::string &fileId) <span class="keyword">const</span>;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a28d6bda0f615ff1c7063905eb61b5cde">leaveChat</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="class_tg_bot_1_1_chat.html#a9818e295b599a08b77abefb38de75e48">Chat::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ad042b4d7f03f45eb59acb68085faaa23">getChat</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  std::vector<ChatMember::Ptr> <a class="code" href="class_tg_bot_1_1_api.html#a2fd133b562c8bcad74d4b76e4fdbc5b8">getChatAdministrators</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  int32_t <a class="code" href="class_tg_bot_1_1_api.html#a018da546747f0d34a5fa3bdb6a715a07">getChatMembersCount</a>(int64_t chatId) <span class="keyword">const</span>;</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <a class="code" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a648190cc90ed13172bc2327344d0e7f6">getChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a2f73414941d8bb67ff3721a674274bf8">answerCallbackQuery</a>(<span class="keyword">const</span> std::string & callbackQueryId, <span class="keyword">const</span> std::string & text=<span class="stringliteral">""</span>, <span class="keywordtype">bool</span> showAlert=<span class="keyword">false</span>, <span class="keyword">const</span> std::string &url=<span class="stringliteral">""</span>, int32_t cacheTime=0) <span class="keyword">const</span>;</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#ae748d3681b132b0cbd6a1a9080a4da2e">editMessageText</a>(<span class="keyword">const</span> std::string& text, int64_t chatId=0, int32_t messageId=0, <span class="keyword">const</span> std::string& inlineMessageId=<span class="stringliteral">""</span>,</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keyword">const</span> std::string& parseMode = <span class="stringliteral">""</span>, <span class="keywordtype">bool</span> disableWebPagePreview = <span class="keyword">false</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a8663d3b183eb53d6b7ca19791e55d7d7">editMessageCaption</a>(int64_t chatId = 0, int32_t messageId = 0, <span class="keyword">const</span> std::string& caption = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keyword">const</span> std::string& inlineMessageId = <span class="stringliteral">""</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <a class="code" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a9edd65a004e477580923216cf741af3f">editMessageReplyMarkup</a>(int64_t chatId = 0, int32_t messageId = 0, <span class="keyword">const</span> std::string& inlineMessageId = <span class="stringliteral">""</span>,</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup = <a class="code" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  std::vector<Update::Ptr> <a class="code" href="class_tg_bot_1_1_api.html#abd10abcfaf859c63cab0526b8c9179c9">getUpdates</a>(int32_t offset = 0, int32_t limit = 100, int32_t timeout = 0, <span class="keyword">const</span> StringArrayPtr &allowedUpdates = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordtype">void</span> <a class="code" href="class_tg_bot_1_1_api.html#af961a33f53579fee24090059dab328ea">setWebhook</a>(<span class="keyword">const</span> std::string& url = <span class="stringliteral">""</span>, <span class="keyword">const</span> <a class="code" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> certificate = <span class="keyword">nullptr</span>, int32_t maxConnection = 40, <span class="keyword">const</span> StringArrayPtr &allowedUpdates = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a8fbfde4234553c478987746c43b08e62">deleteWebhook</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <a class="code" href="class_tg_bot_1_1_webhook_info.html#a2280093713d1304207d8bba2204648d6">WebhookInfo::Ptr</a> <a class="code" href="class_tg_bot_1_1_api.html#a43bf35783ec4f9a03e46925e36fda24c">getWebhookInfo</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a430f9e036859250345d2125b7688a1f9">answerInlineQuery</a>(<span class="keyword">const</span> std::string& inlineQueryId, <span class="keyword">const</span> std::vector<InlineQueryResult::Ptr>& results,</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  int32_t cacheTime=300, <span class="keywordtype">bool</span> isPersonal=<span class="keyword">false</span>, <span class="keyword">const</span> std::string& nextOffset=<span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& switchPmText=<span class="stringliteral">""</span>, <span class="keyword">const</span> std::string& switchPmParameter=<span class="stringliteral">""</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a07c9bb7aa68a66bec54dd9bcf97875d7">kickChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordtype">bool</span> <a class="code" href="class_tg_bot_1_1_api.html#a44ea670c4eecdf100f60be3c90911eec">unbanChatMember</a>(int64_t chatId, int32_t userId) <span class="keyword">const</span>;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  std::string <a class="code" href="class_tg_bot_1_1_api.html#aa60ec06b9171d94ef717f1ac03190f07">downloadFile</a>(<span class="keyword">const</span> std::string& filePath, <span class="keyword">const</span> std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  boost::property_tree::ptree sendRequest(<span class="keyword">const</span> std::string& method, <span class="keyword">const</span> std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) <span class="keyword">const</span>;</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span> </div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keyword">const</span> std::string _token;</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> };</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> }</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> </div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="preprocessor">#endif //TGBOT_CPP_API_H</span></div><div class="ttc" id="class_tg_bot_1_1_api_html_ad042b4d7f03f45eb59acb68085faaa23"><div class="ttname"><a href="class_tg_bot_1_1_api.html#ad042b4d7f03f45eb59acb68085faaa23">TgBot::Api::getChat</a></div><div class="ttdeci">Chat::Ptr getChat(int64_t chatId) const</div></div> <div class="ttc" id="class_tg_bot_1_1_api_html_a483c9c374b6f42bceb66b0093bf1cb4f"><div class="ttname"><a href="class_tg_bot_1_1_api.html#a483c9c374b6f42bceb66b0093bf1cb4f">TgBot::Api::sendVenue</a></div><div class="ttdeci">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</div></div> <div class="ttc" id="class_tg_bot_1_1_api_html_a91ab4ca23c30bcb3064c114cb9d690ed"><div class="ttname"><a href="class_tg_bot_1_1_api.html#a91ab4ca23c30bcb3064c114cb9d690ed">TgBot::Api::sendLocation</a></div><div class="ttdeci">Message::Ptr sendLocation(int64_t chatId, float latitude, float longitude, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const</div></div> <div class="ttc" id="class_tg_bot_1_1_file_html_ac47e9c73b9d762eef2322c0932c5a934"><div class="ttname"><a href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">TgBot::File::Ptr</a></div><div class="ttdeci">std::shared_ptr< File > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="_file_8h_source.html#l00024">File.h:24</a></div></div> +<div class="ttc" id="class_tg_bot_1_1_api_html_aa60ec06b9171d94ef717f1ac03190f07"><div class="ttname"><a href="class_tg_bot_1_1_api.html#aa60ec06b9171d94ef717f1ac03190f07">TgBot::Api::downloadFile</a></div><div class="ttdeci">std::string downloadFile(const std::string &filePath, const std::vector< HttpReqArg > &args=std::vector< HttpReqArg >()) const</div></div> <div class="ttc" id="class_tg_bot_1_1_api_html_abd10abcfaf859c63cab0526b8c9179c9"><div class="ttname"><a href="class_tg_bot_1_1_api.html#abd10abcfaf859c63cab0526b8c9179c9">TgBot::Api::getUpdates</a></div><div class="ttdeci">std::vector< Update::Ptr > getUpdates(int32_t offset=0, int32_t limit=100, int32_t timeout=0, const StringArrayPtr &allowedUpdates=nullptr) const</div></div> +<div class="ttc" id="class_tg_bot_1_1_api_html_ac50bdd50bf0cf5a211e699925759ebc1"><div class="ttname"><a href="class_tg_bot_1_1_api.html#ac50bdd50bf0cf5a211e699925759ebc1">TgBot::Api::getFile</a></div><div class="ttdeci">File::Ptr getFile(const std::string &fileId) const</div></div> <div class="ttc" id="_webhook_info_8h_html"><div class="ttname"><a href="_webhook_info_8h.html">WebhookInfo.h</a></div></div> <div class="ttc" id="namespace_tg_bot_html"><div class="ttname"><a href="namespace_tg_bot.html">TgBot</a></div><div class="ttdef"><b>Definition:</b> <a href="_api_8h_source.html#l00044">Api.h:44</a></div></div> <div class="ttc" id="_generic_reply_8h_html"><div class="ttname"><a href="_generic_reply_8h.html">GenericReply.h</a></div></div> @@ -136,7 +138,6 @@ $(document).ready(function(){initNavTree('_api_8h_source.html','');}); <div class="ttc" id="class_tg_bot_1_1_chat_member_html_a7c14c867a129ac28396b680c79dc495d"><div class="ttname"><a href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">TgBot::ChatMember::Ptr</a></div><div class="ttdeci">std::shared_ptr< ChatMember > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="_chat_member_8h_source.html#l00021">ChatMember.h:21</a></div></div> <div class="ttc" id="class_tg_bot_1_1_api_html_af961a33f53579fee24090059dab328ea"><div class="ttname"><a href="class_tg_bot_1_1_api.html#af961a33f53579fee24090059dab328ea">TgBot::Api::setWebhook</a></div><div class="ttdeci">void setWebhook(const std::string &url="", const InputFile::Ptr certificate=nullptr, int32_t maxConnection=40, const StringArrayPtr &allowedUpdates=nullptr) const</div></div> <div class="ttc" id="_file_8h_html"><div class="ttname"><a href="_file_8h.html">File.h</a></div></div> -<div class="ttc" id="class_tg_bot_1_1_api_html_abff10c92fa22a812d5bc17a068413709"><div class="ttname"><a href="class_tg_bot_1_1_api.html#abff10c92fa22a812d5bc17a068413709">TgBot::Api::getFile</a></div><div class="ttdeci">File::Ptr getFile(int32_t fileId) const</div></div> <div class="ttc" id="class_tg_bot_1_1_user_html_ae6ea24aef677abaaf0fd7d60adf5be79"><div class="ttname"><a href="class_tg_bot_1_1_user.html#ae6ea24aef677abaaf0fd7d60adf5be79">TgBot::User::Ptr</a></div><div class="ttdeci">std::shared_ptr< User > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="_user_8h_source.html#l00038">User.h:38</a></div></div> <div class="ttc" id="_message_8h_html"><div class="ttname"><a href="_message_8h.html">Message.h</a></div></div> </div><!-- fragment --></div><!-- contents --> @@ -145,7 +146,7 @@ $(document).ready(function(){initNavTree('_api_8h_source.html','');}); <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_25b26b9fa3b0bd1537052b03f43dd617.html">tgbot</a></li><li class="navelem"><a class="el" href="_api_8h.html">Api.h</a></li> - <li class="footer">Generated on Thu Jan 26 2017 14:29:52 for tgbot-cpp by + <li class="footer">Generated on Tue Mar 21 2017 19:07:24 for tgbot-cpp by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> </ul> |