More docu

This commit is contained in:
Hauke Zühl
2016-05-03 09:50:07 +02:00
parent e62f0f1f03
commit de94dadc0d
147 changed files with 527 additions and 501 deletions
+55 -63
View File
@@ -116,90 +116,82 @@ $(document).ready(function(){initNavTree('TelegramBot_8h_source.html','');});
<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="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">namespace </span>Telegram {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a97c1241696e3250bf462adae6b65a563"> 14</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="comment">// Typedef for callbacks</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</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="l00018"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#a91fee4a272faa7eb5f1aeb68ed0b54a4"> 18</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="l00019"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html"> 19</a></span>&#160; <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b"> 20</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a1c051d162e478b9f98efafbeeed19f9b">command</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a3f2c8ecbfd34be25baa577afee2e6e52"> 21</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="l00022"></a><span class="lineno"><a class="line" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b"> 22</a></span>&#160; std::string <a class="code" href="structTelegram_1_1TCommand.html#a867f39a193fc9362da5b7111a655ae2b">help_text</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; } <a class="code" href="structTelegram_1_1TCommand.html">TCommand</a>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2"> 24</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="l00025"></a><span class="lineno"> 25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html"> 26</a></span>&#160; <span class="keyword">class </span><a class="code" href="classTelegram_1_1TelegramBot.html">TelegramBot</a> {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>();</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <a class="code" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a>(std::string);</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"> 32</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="l00033"></a><span class="lineno"> 33</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="l00034"></a><span class="lineno"> 34</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="l00035"></a><span class="lineno"> 35</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="l00036"></a><span class="lineno"> 36</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="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; <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="l00039"></a><span class="lineno"> 39</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="l00040"></a><span class="lineno"> 40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// Callback methods</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="comment">/*</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment"> std::string start(Telegram::TelegramBot, tvCommandLine);</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment"> std::string help(tvCommandLine);</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment"> std::string whoami(tvCommandLine);</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment"> std::string loadavg(tvCommandLine);</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment"> std::string proc(tvCommandLine);</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="comment"> */</span></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="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; <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="l00045"></a><span class="lineno"> 45</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="l00046"></a><span class="lineno"> 46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd"> 48</a></span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">api_url</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5"> 49</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="l00050"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c"> 50</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="l00051"></a><span class="lineno"><a class="line" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a"> 51</a></span>&#160; Json::Int64 <a class="code" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">chat_id</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">init</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</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="l00055"></a><span class="lineno"> 55</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="l00056"></a><span class="lineno"> 56</span>&#160; std::string <a class="code" href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">processCommand</a>(std::string);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; };</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;}</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="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#l00115">TelegramBot.cc:115</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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00020">TelegramBot.h:20</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="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#l00049">TelegramBot.h:49</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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00022">TelegramBot.h:22</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="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#l00123">TelegramBot.cc:123</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#l00109">TelegramBot.cc:109</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#l00187">TelegramBot.cc:187</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#l00019">TelegramBot.h:19</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_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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00021">TelegramBot.h:21</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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00018">TelegramBot.h:18</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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00024">TelegramBot.h:24</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="ttdef"><b>Definition:</b> <a href="TelegramBot_8h_source.html#l00014">TelegramBot.h:14</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#l00050">TelegramBot.h:50</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="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#l00104">TelegramBot.cc:104</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_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#l00051">TelegramBot.h:51</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#l00160">TelegramBot.cc:160</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#l00026">TelegramBot.h:26</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#l00048">TelegramBot.h:48</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><!-- 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 Mon May 2 2016 14:19:24 for LibTgBotPP by
<li class="footer">Generated on Tue May 3 2016 09:46:46 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>