docs updated

This commit is contained in:
Hauke Zühl
2017-06-06 14:39:53 +02:00
parent 23370963d4
commit d75e40bea7
143 changed files with 690 additions and 474 deletions
+76 -69
View File
@@ -115,87 +115,94 @@ $(document).ready(function(){initNavTree('TelegramBot_8h_source.html','');});
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;json/json.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Message_8h.html">Telegram/Message.h</a>&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">namespace </span>Telegram {</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563"> 17</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a>;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="comment">// Typedef for callbacks</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keyword">typedef</span> std::vector&lt;std::string&gt; <a class="code" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">TCommandLine</a>; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4"> 21</a></span>&#160; <span class="keyword">typedef</span> std::string(*<a class="code" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">CommandCallback</a>)(<a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a>*, <a class="code" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">TCommandLine</a>); </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html"> 25</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b"> 26</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b">command</a>; </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52"> 27</a></span>&#160; <a class="code" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">CommandCallback</a> <a class="code" href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52">callback</a>; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b"> 28</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b">help_text</a>; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; } <a class="code" href="structTelegram_1_1TCommand.html">TCommand</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2"> 30</a></span>&#160; <span class="keyword">typedef</span> std::map&lt;std::string, TCommand&gt; <a class="code" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a>; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html"> 32</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>(std::string);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a398bd76186e27d514afd835c5437c6ed">addCommand</a>(<a class="code" href="structTelegram_1_1TCommand.html">TCommand</a>);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#aabd1a825b1d7f127f15bf336b985d70d">setWebhook</a>(std::string);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#af6fbb842f679b33dd8a60f94f82d7c81">processMessage</a>(std::string);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a1645dae5fdfb1437bb8976f44c237563">sendMessage</a>(std::string, Json::Int64);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a1645dae5fdfb1437bb8976f44c237563">sendMessage</a>(std::string, std::string);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a58e633cc42dcd964a37e2814102764bc">sendPhoto</a>(std::string, Json::Int64);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a58e633cc42dcd964a37e2814102764bc">sendPhoto</a>(std::string, std::string);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#a7c54766f656974b35f03ea510d7b6a4f">getMessage</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; std::map&lt;std::string, TCommand&gt; <a class="code" href="classTelegram_1_1TelegramBot.html#aae9aba06108ce34f9766199c6588e1d6">getCommandMap</a>();</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd"> 51</a></span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">api_url</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5"> 52</a></span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5">msg</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c"> 53</a></span>&#160; <a class="code" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a> <a class="code" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c">command_map</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a"> 54</a></span>&#160; Json::Int64 <a class="code" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">chat_id</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">init</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258">apiRequest</a>(std::string, std::map&lt;std::string, std::string&gt;);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a9ee0c2d12f906cb2e0a9b7fb2d7e45a5">apiRequestJson</a>(std::string, std::map&lt;std::string, std::string&gt;);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">processCommand</a>(std::string);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; };</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;}</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_ae0d0fe5d54afcc9e6ee16b3d4f8ae895"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">Telegram::TelegramBot::init</a></div><div class="ttdeci">void init()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00139">TelegramBot.cc:139</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a1c051d162e478b9f98efafbeeed19f9b"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b">Telegram::TCommand::command</a></div><div class="ttdeci">std::string command</div><div class="ttdoc">The command, e.g. /help. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00026">TelegramBot.h:26</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a27ee4520baa0cf7f36ec6f13e69867a5"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5">Telegram::TelegramBot::msg</a></div><div class="ttdeci">Telegram::Message * msg</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00052">TelegramBot.h:52</a></div></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="User_8h.html">Telegram/User.h</a>&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">namespace </span>Telegram {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563"> 18</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="comment">// Typedef for callbacks</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">typedef</span> std::vector&lt;std::string&gt; <a class="code" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">TCommandLine</a>; </div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4"> 22</a></span>&#160; <span class="keyword">typedef</span> std::string(*<a class="code" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">CommandCallback</a>)(<a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a>*, <a class="code" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">TCommandLine</a>); </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html"> 26</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b"> 27</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b">command</a>; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52"> 28</a></span>&#160; <a class="code" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">CommandCallback</a> <a class="code" href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52">callback</a>; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b"> 29</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b">help_text</a>; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; } <a class="code" href="structTelegram_1_1TCommand.html">TCommand</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2"> 31</a></span>&#160; <span class="keyword">typedef</span> std::map&lt;std::string, TCommand&gt; <a class="code" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a>; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html"> 33</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>();</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>(std::string);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a398bd76186e27d514afd835c5437c6ed">addCommand</a>(<a class="code" href="structTelegram_1_1TCommand.html">TCommand</a>);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#aabd1a825b1d7f127f15bf336b985d70d">setWebhook</a>(std::string);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#af6fbb842f679b33dd8a60f94f82d7c81">processMessage</a>(std::string);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="classTelegram_1_1User.html">Telegram::User</a>* <a class="code" href="classTelegram_1_1TelegramBot.html#a18326a958f926cdea62339899a29a1e1">getMe</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a>* <a class="code" href="classTelegram_1_1TelegramBot.html#acd21ba91f309c6d5fbcf7dc0063375ae">sendMessage</a>(std::string, Json::Int64);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a>* <a class="code" href="classTelegram_1_1TelegramBot.html#acd21ba91f309c6d5fbcf7dc0063375ae">sendMessage</a>(std::string, std::string);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#adb9d623814ecbbeeefef4faa073b73c3">sendPhoto</a>(std::string, Json::Int64);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#adb9d623814ecbbeeefef4faa073b73c3">sendPhoto</a>(std::string, std::string);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#a7c54766f656974b35f03ea510d7b6a4f">getMessage</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; std::map&lt;std::string, TCommand&gt; <a class="code" href="classTelegram_1_1TelegramBot.html#aae9aba06108ce34f9766199c6588e1d6">getCommandMap</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd"> 55</a></span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">api_url</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5"> 56</a></span>&#160; <a class="code" href="classTelegram_1_1Message.html">Telegram::Message</a> *<a class="code" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5">msg</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c"> 57</a></span>&#160; <a class="code" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a> <a class="code" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c">command_map</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a"> 58</a></span>&#160; Json::Int64 <a class="code" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">chat_id</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">init</a>();</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258">apiRequest</a>(std::string, std::map&lt;std::string, std::string&gt;);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; Json::Value <a class="code" href="classTelegram_1_1TelegramBot.html#aba249898870b8250da0ac67ba6a55e88">apiRequestJson</a>(std::string, std::map&lt;std::string, std::string&gt;);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">processCommand</a>(std::string);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; };</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;}</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_ae0d0fe5d54afcc9e6ee16b3d4f8ae895"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">Telegram::TelegramBot::init</a></div><div class="ttdeci">void init()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00157">TelegramBot.cc:157</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a1c051d162e478b9f98efafbeeed19f9b"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b">Telegram::TCommand::command</a></div><div class="ttdeci">std::string command</div><div class="ttdoc">The command, e.g. /help. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00027">TelegramBot.h:27</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a27ee4520baa0cf7f36ec6f13e69867a5"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5">Telegram::TelegramBot::msg</a></div><div class="ttdeci">Telegram::Message * msg</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00056">TelegramBot.h:56</a></div></div>
<div class="ttc" id="Message_8h_html"><div class="ttname"><a href="Message_8h.html">Message.h</a></div></div>
<div class="ttc" id="classTelegram_1_1Message_html"><div class="ttname"><a href="classTelegram_1_1Message.html">Telegram::Message</a></div><div class="ttdef"><b>Definition:</b> <a href="Message_8h_source.html#l00027">Message.h:27</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a1645dae5fdfb1437bb8976f44c237563"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a1645dae5fdfb1437bb8976f44c237563">Telegram::TelegramBot::sendMessage</a></div><div class="ttdeci">void sendMessage(std::string, Json::Int64)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00090">TelegramBot.cc:90</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a867f39a193fc9362da5b7111a655ae2b"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b">Telegram::TCommand::help_text</a></div><div class="ttdeci">std::string help_text</div><div class="ttdoc">Help text of the command. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00028">TelegramBot.h:28</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a867f39a193fc9362da5b7111a655ae2b"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b">Telegram::TCommand::help_text</a></div><div class="ttdeci">std::string help_text</div><div class="ttdoc">Help text of the command. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00029">TelegramBot.h:29</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a18326a958f926cdea62339899a29a1e1"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a18326a958f926cdea62339899a29a1e1">Telegram::TelegramBot::getMe</a></div><div class="ttdeci">Telegram::User * getMe(void)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00087">TelegramBot.cc:87</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aabd1a825b1d7f127f15bf336b985d70d"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aabd1a825b1d7f127f15bf336b985d70d">Telegram::TelegramBot::setWebhook</a></div><div class="ttdeci">void setWebhook(std::string)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00060">TelegramBot.cc:60</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_af6fbb842f679b33dd8a60f94f82d7c81"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#af6fbb842f679b33dd8a60f94f82d7c81">Telegram::TelegramBot::processMessage</a></div><div class="ttdeci">void processMessage(std::string)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00074">TelegramBot.cc:74</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a7e07f1ca99390958ef5c6c95cbf18258"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258">Telegram::TelegramBot::apiRequest</a></div><div class="ttdeci">void apiRequest(std::string, std::map&lt; std::string, std::string &gt;)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00147">TelegramBot.cc:147</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aae9aba06108ce34f9766199c6588e1d6"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aae9aba06108ce34f9766199c6588e1d6">Telegram::TelegramBot::getCommandMap</a></div><div class="ttdeci">std::map&lt; std::string, TCommand &gt; getCommandMap()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00133">TelegramBot.cc:133</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a58e633cc42dcd964a37e2814102764bc"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a58e633cc42dcd964a37e2814102764bc">Telegram::TelegramBot::sendPhoto</a></div><div class="ttdeci">void sendPhoto(std::string, Json::Int64)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00110">TelegramBot.cc:110</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aed4dd1ce506259c0e82f0c46fe125ca4"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">Telegram::TelegramBot::processCommand</a></div><div class="ttdeci">std::string processCommand(std::string)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00211">TelegramBot.cc:211</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html"><div class="ttname"><a href="structTelegram_1_1TCommand.html">Telegram::TCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00025">TelegramBot.h:25</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a7e07f1ca99390958ef5c6c95cbf18258"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258">Telegram::TelegramBot::apiRequest</a></div><div class="ttdeci">void apiRequest(std::string, std::map&lt; std::string, std::string &gt;)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00165">TelegramBot.cc:165</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aae9aba06108ce34f9766199c6588e1d6"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aae9aba06108ce34f9766199c6588e1d6">Telegram::TelegramBot::getCommandMap</a></div><div class="ttdeci">std::map&lt; std::string, TCommand &gt; getCommandMap()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00151">TelegramBot.cc:151</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aed4dd1ce506259c0e82f0c46fe125ca4"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">Telegram::TelegramBot::processCommand</a></div><div class="ttdeci">std::string processCommand(std::string)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00238">TelegramBot.cc:238</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html"><div class="ttname"><a href="structTelegram_1_1TCommand.html">Telegram::TCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00026">TelegramBot.h:26</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a99b561e695953e6b69a3ddf6937a4811"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">Telegram::TelegramBot::TelegramBot</a></div><div class="ttdeci">TelegramBot()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00022">TelegramBot.cc:22</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a3f2c8ecbfd34be25baa577afee2e6e52"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52">Telegram::TCommand::callback</a></div><div class="ttdeci">CommandCallback callback</div><div class="ttdoc">Pointer to the callback function. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00027">TelegramBot.h:27</a></div></div>
<div class="ttc" id="namespaceTelegram_html_a91fee4a272faa7eb5f1aeb68ed0b54a4"><div class="ttname"><a href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">Telegram::CommandCallback</a></div><div class="ttdeci">std::string(* CommandCallback)(TelegramBot *, TCommandLine)</div><div class="ttdoc">Definition for a callback routine. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00021">TelegramBot.h:21</a></div></div>
<div class="ttc" id="namespaceTelegram_html_ad82f4bcddd3c7921e8842bb30170a1c2"><div class="ttname"><a href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">Telegram::TCommandMap</a></div><div class="ttdeci">std::map&lt; std::string, TCommand &gt; TCommandMap</div><div class="ttdoc">Map that stores the known commands. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00030">TelegramBot.h:30</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a4729f977e1d564326f0061c1417dc09c"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c">Telegram::TelegramBot::command_map</a></div><div class="ttdeci">TCommandMap command_map</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00053">TelegramBot.h:53</a></div></div>
<div class="ttc" id="namespaceTelegram_html_a97c1241696e3250bf462adae6b65a563"><div class="ttname"><a href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">Telegram::TCommandLine</a></div><div class="ttdeci">std::vector&lt; std::string &gt; TCommandLine</div><div class="ttdoc">Arguments for the bot&#39;s commands. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00017">TelegramBot.h:17</a></div></div>
<div class="ttc" id="structTelegram_1_1TCommand_html_a3f2c8ecbfd34be25baa577afee2e6e52"><div class="ttname"><a href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52">Telegram::TCommand::callback</a></div><div class="ttdeci">CommandCallback callback</div><div class="ttdoc">Pointer to the callback function. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00028">TelegramBot.h:28</a></div></div>
<div class="ttc" id="User_8h_html"><div class="ttname"><a href="User_8h.html">User.h</a></div></div>
<div class="ttc" id="namespaceTelegram_html_a91fee4a272faa7eb5f1aeb68ed0b54a4"><div class="ttname"><a href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4">Telegram::CommandCallback</a></div><div class="ttdeci">std::string(* CommandCallback)(TelegramBot *, TCommandLine)</div><div class="ttdoc">Definition for a callback routine. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00022">TelegramBot.h:22</a></div></div>
<div class="ttc" id="namespaceTelegram_html_ad82f4bcddd3c7921e8842bb30170a1c2"><div class="ttname"><a href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">Telegram::TCommandMap</a></div><div class="ttdeci">std::map&lt; std::string, TCommand &gt; TCommandMap</div><div class="ttdoc">Map that stores the known commands. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00031">TelegramBot.h:31</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a4729f977e1d564326f0061c1417dc09c"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c">Telegram::TelegramBot::command_map</a></div><div class="ttdeci">TCommandMap command_map</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00057">TelegramBot.h:57</a></div></div>
<div class="ttc" id="namespaceTelegram_html_a97c1241696e3250bf462adae6b65a563"><div class="ttname"><a href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563">Telegram::TCommandLine</a></div><div class="ttdeci">std::vector&lt; std::string &gt; TCommandLine</div><div class="ttdoc">Arguments for the bot&#39;s commands. </div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00018">TelegramBot.h:18</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a398bd76186e27d514afd835c5437c6ed"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a398bd76186e27d514afd835c5437c6ed">Telegram::TelegramBot::addCommand</a></div><div class="ttdeci">void addCommand(TCommand)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00044">TelegramBot.cc:44</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a7c54766f656974b35f03ea510d7b6a4f"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a7c54766f656974b35f03ea510d7b6a4f">Telegram::TelegramBot::getMessage</a></div><div class="ttdeci">Telegram::Message * getMessage()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00128">TelegramBot.cc:128</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a33ce0cbad266e831c834aa2e3d854e5a"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">Telegram::TelegramBot::chat_id</a></div><div class="ttdeci">Json::Int64 chat_id</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00054">TelegramBot.h:54</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a9ee0c2d12f906cb2e0a9b7fb2d7e45a5"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a9ee0c2d12f906cb2e0a9b7fb2d7e45a5">Telegram::TelegramBot::apiRequestJson</a></div><div class="ttdeci">void apiRequestJson(std::string, std::map&lt; std::string, std::string &gt;)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00184">TelegramBot.cc:184</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a1ca971ccfb242f7b8656eca3ab7666dd"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">Telegram::TelegramBot::api_url</a></div><div class="ttdeci">std::string api_url</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00051">TelegramBot.h:51</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html">Telegram::TelegramBot</a></div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00032">TelegramBot.h:32</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a7c54766f656974b35f03ea510d7b6a4f"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a7c54766f656974b35f03ea510d7b6a4f">Telegram::TelegramBot::getMessage</a></div><div class="ttdeci">Telegram::Message * getMessage()</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00146">TelegramBot.cc:146</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a33ce0cbad266e831c834aa2e3d854e5a"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">Telegram::TelegramBot::chat_id</a></div><div class="ttdeci">Json::Int64 chat_id</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00058">TelegramBot.h:58</a></div></div>
<div class="ttc" id="classTelegram_1_1User_html"><div class="ttname"><a href="classTelegram_1_1User.html">Telegram::User</a></div><div class="ttdef"><b>Definition:</b> <a href="User_8h_source.html#l00009">User.h:9</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_aba249898870b8250da0ac67ba6a55e88"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#aba249898870b8250da0ac67ba6a55e88">Telegram::TelegramBot::apiRequestJson</a></div><div class="ttdeci">Json::Value apiRequestJson(std::string, std::map&lt; std::string, std::string &gt;)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00202">TelegramBot.cc:202</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_adb9d623814ecbbeeefef4faa073b73c3"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#adb9d623814ecbbeeefef4faa073b73c3">Telegram::TelegramBot::sendPhoto</a></div><div class="ttdeci">Telegram::Message * sendPhoto(std::string, Json::Int64)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00124">TelegramBot.cc:124</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_acd21ba91f309c6d5fbcf7dc0063375ae"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#acd21ba91f309c6d5fbcf7dc0063375ae">Telegram::TelegramBot::sendMessage</a></div><div class="ttdeci">Telegram::Message * sendMessage(std::string, Json::Int64)</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8cc_source.html#l00100">TelegramBot.cc:100</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html_a1ca971ccfb242f7b8656eca3ab7666dd"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">Telegram::TelegramBot::api_url</a></div><div class="ttdeci">std::string api_url</div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00055">TelegramBot.h:55</a></div></div>
<div class="ttc" id="classTelegram_1_1TelegramBot_html"><div class="ttname"><a href="classTelegram_1_1TelegramBot.html">Telegram::TelegramBot</a></div><div class="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00033">TelegramBot.h:33</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d7ce4a79ae3c2a43a536554fcfb9dac1.html">include</a></li><li class="navelem"><a class="el" href="dir_cf80afe0fa85d59a60502dbf39c7bfaf.html">Telegram</a></li><li class="navelem"><a class="el" href="TelegramBot_8h.html">TelegramBot.h</a></li>
<li class="footer">Generated on Sun Jun 4 2017 13:31:53 for LibTgBotPP by
<li class="footer">Generated on Tue Jun 6 2017 14:39:17 for LibTgBotPP by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>