You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

668 lines
31 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibTgBotPP: Telegram::TelegramBot Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">LibTgBotPP
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classTelegram_1_1TelegramBot.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classTelegram_1_1TelegramBot-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Telegram::TelegramBot Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a99b561e695953e6b69a3ddf6937a4811"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a99b561e695953e6b69a3ddf6937a4811">TelegramBot</a> ()</td></tr>
<tr class="separator:a99b561e695953e6b69a3ddf6937a4811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f2a5f734bac5f83d2c0e5068618646"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a52f2a5f734bac5f83d2c0e5068618646">TelegramBot</a> (std::string)</td></tr>
<tr class="separator:a52f2a5f734bac5f83d2c0e5068618646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a398bd76186e27d514afd835c5437c6ed"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a398bd76186e27d514afd835c5437c6ed">addCommand</a> (<a class="el" href="structTelegram_1_1TCommand.html">TCommand</a>)</td></tr>
<tr class="separator:a398bd76186e27d514afd835c5437c6ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabd1a825b1d7f127f15bf336b985d70d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#aabd1a825b1d7f127f15bf336b985d70d">setWebhook</a> (std::string)</td></tr>
<tr class="separator:aabd1a825b1d7f127f15bf336b985d70d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6fbb842f679b33dd8a60f94f82d7c81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#af6fbb842f679b33dd8a60f94f82d7c81">processMessage</a> (std::string)</td></tr>
<tr class="separator:af6fbb842f679b33dd8a60f94f82d7c81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1645dae5fdfb1437bb8976f44c237563"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a1645dae5fdfb1437bb8976f44c237563">sendMessage</a> (std::string, Json::Int64)</td></tr>
<tr class="separator:a1645dae5fdfb1437bb8976f44c237563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9fdf927b0ebf72b40a0a75639e39d18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#ac9fdf927b0ebf72b40a0a75639e39d18">sendMessage</a> (std::string, std::string)</td></tr>
<tr class="separator:ac9fdf927b0ebf72b40a0a75639e39d18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58e633cc42dcd964a37e2814102764bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a58e633cc42dcd964a37e2814102764bc">sendPhoto</a> (std::string, Json::Int64)</td></tr>
<tr class="separator:a58e633cc42dcd964a37e2814102764bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a257660b7cead3d886d94824efe9819f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a257660b7cead3d886d94824efe9819f6">sendPhoto</a> (std::string, std::string)</td></tr>
<tr class="separator:a257660b7cead3d886d94824efe9819f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c54766f656974b35f03ea510d7b6a4f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTelegram_1_1Message.html">Telegram::Message</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a7c54766f656974b35f03ea510d7b6a4f">getMessage</a> ()</td></tr>
<tr class="separator:a7c54766f656974b35f03ea510d7b6a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae9aba06108ce34f9766199c6588e1d6"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, <a class="el" href="structTelegram_1_1TCommand.html">TCommand</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#aae9aba06108ce34f9766199c6588e1d6">getCommandMap</a> ()</td></tr>
<tr class="separator:aae9aba06108ce34f9766199c6588e1d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ae0d0fe5d54afcc9e6ee16b3d4f8ae895"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#ae0d0fe5d54afcc9e6ee16b3d4f8ae895">init</a> ()</td></tr>
<tr class="separator:ae0d0fe5d54afcc9e6ee16b3d4f8ae895"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e07f1ca99390958ef5c6c95cbf18258"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258">apiRequest</a> (std::string, std::map&lt; std::string, std::string &gt;)</td></tr>
<tr class="separator:a7e07f1ca99390958ef5c6c95cbf18258"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee0c2d12f906cb2e0a9b7fb2d7e45a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a9ee0c2d12f906cb2e0a9b7fb2d7e45a5">apiRequestJson</a> (std::string, std::map&lt; std::string, std::string &gt;)</td></tr>
<tr class="separator:a9ee0c2d12f906cb2e0a9b7fb2d7e45a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4dd1ce506259c0e82f0c46fe125ca4"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#aed4dd1ce506259c0e82f0c46fe125ca4">processCommand</a> (std::string)</td></tr>
<tr class="separator:aed4dd1ce506259c0e82f0c46fe125ca4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a1ca971ccfb242f7b8656eca3ab7666dd"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a1ca971ccfb242f7b8656eca3ab7666dd">api_url</a></td></tr>
<tr class="separator:a1ca971ccfb242f7b8656eca3ab7666dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27ee4520baa0cf7f36ec6f13e69867a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTelegram_1_1Message.html">Telegram::Message</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a27ee4520baa0cf7f36ec6f13e69867a5">msg</a></td></tr>
<tr class="separator:a27ee4520baa0cf7f36ec6f13e69867a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4729f977e1d564326f0061c1417dc09c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a4729f977e1d564326f0061c1417dc09c">command_map</a></td></tr>
<tr class="separator:a4729f977e1d564326f0061c1417dc09c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33ce0cbad266e831c834aa2e3d854e5a"><td class="memItemLeft" align="right" valign="top">Json::Int64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelegram_1_1TelegramBot.html#a33ce0cbad266e831c834aa2e3d854e5a">chat_id</a></td></tr>
<tr class="separator:a33ce0cbad266e831c834aa2e3d854e5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="TelegramBot_8h_source.html#l00032">32</a> of file <a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a99b561e695953e6b69a3ddf6937a4811"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Telegram::TelegramBot::TelegramBot </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor of Bot </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00022">22</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a52f2a5f734bac5f83d2c0e5068618646"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Telegram::TelegramBot::TelegramBot </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>token</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor of bot</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">token</td><td>a std::string </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00033">33</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a398bd76186e27d514afd835c5437c6ed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::addCommand </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structTelegram_1_1TCommand.html">TCommand</a>&#160;</td>
<td class="paramname"><em>cmd</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a callback to the command list of the bot</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cmd</td><td>a structure of type <a class="el" href="structTelegram_1_1TCommand.html">TCommand</a> </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00044">44</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a7e07f1ca99390958ef5c6c95cbf18258"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::apiRequest </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>method</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::map&lt; std::string, std::string &gt;&#160;</td>
<td class="paramname"><em>parameters</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A generic API request </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00147">147</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a9ee0c2d12f906cb2e0a9b7fb2d7e45a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::apiRequestJson </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>method</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::map&lt; std::string, std::string &gt;&#160;</td>
<td class="paramname"><em>parameters</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An API request, posting JSON data </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00184">184</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="aae9aba06108ce34f9766199c6588e1d6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">Telegram::TCommandMap</a> Telegram::TelegramBot::getCommandMap </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00133">133</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a7c54766f656974b35f03ea510d7b6a4f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTelegram_1_1Message.html">Telegram::Message</a> * Telegram::TelegramBot::getMessage </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00128">128</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="ae0d0fe5d54afcc9e6ee16b3d4f8ae895"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::init </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00139">139</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="aed4dd1ce506259c0e82f0c46fe125ca4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string Telegram::TelegramBot::processCommand </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>cmd</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00211">211</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="af6fbb842f679b33dd8a60f94f82d7c81"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::processMessage </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>message</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Process incoming message</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">message</td><td>a std::string storing the message sent by the <a class="el" href="namespaceTelegram.html">Telegram</a> system </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00074">74</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a1645dae5fdfb1437bb8976f44c237563"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::sendMessage </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>message</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Json::Int64&#160;</td>
<td class="paramname"><em>chat_id</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send a text message to a user </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00090">90</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="ac9fdf927b0ebf72b40a0a75639e39d18"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::sendMessage </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>message</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>chat_id</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>sendMessage sends a simple text message to a given chat (might be a user or a group) </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00098">98</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a58e633cc42dcd964a37e2814102764bc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::sendPhoto </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>URL</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Json::Int64&#160;</td>
<td class="paramname"><em>chat_id</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sends a picture from the internet to a chat </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00110">110</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a257660b7cead3d886d94824efe9819f6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::sendPhoto </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>URL</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>chat_id</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sends a picture from the internet to a chat </p>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00118">118</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<a class="anchor" id="aabd1a825b1d7f127f15bf336b985d70d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Telegram::TelegramBot::setWebhook </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the webhook The web hook URL is like <a href="https://">https://</a>&lt;your domain&gt;=""&gt;/cgi-bin/mybot.cgi A web hook must be set before you can get any messages from the <a class="el" href="namespaceTelegram.html">Telegram</a> network!</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">url</td><td>a std::string with the URL of the hook </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="TelegramBot_8cc_source.html#l00060">60</a> of file <a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a1ca971ccfb242f7b8656eca3ab7666dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string Telegram::TelegramBot::api_url</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8h_source.html#l00051">51</a> of file <a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>.</p>
</div>
</div>
<a class="anchor" id="a33ce0cbad266e831c834aa2e3d854e5a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Json::Int64 Telegram::TelegramBot::chat_id</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8h_source.html#l00054">54</a> of file <a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4729f977e1d564326f0061c1417dc09c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2">TCommandMap</a> Telegram::TelegramBot::command_map</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8h_source.html#l00053">53</a> of file <a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>.</p>
</div>
</div>
<a class="anchor" id="a27ee4520baa0cf7f36ec6f13e69867a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTelegram_1_1Message.html">Telegram::Message</a>* Telegram::TelegramBot::msg</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="TelegramBot_8h_source.html#l00052">52</a> of file <a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="TelegramBot_8h_source.html">TelegramBot.h</a></li>
<li><a class="el" href="TelegramBot_8cc_source.html">TelegramBot.cc</a></li>
</ul>
</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="namespaceTelegram.html">Telegram</a></li><li class="navelem"><a class="el" href="classTelegram_1_1TelegramBot.html">TelegramBot</a></li>
<li class="footer">Generated on Sun Jun 4 2017 13:31:53 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>
</div>
</body>
</html>