2016-05-02 10:17:19 +02:00
<!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  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  List</ span ></ a ></ li >
< li >< a href = "classes.html" >< span > Class  Index</ span ></ a ></ li >
< li >< a href = "functions.html" >< span > Class  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" >   </ span > All</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" >< span class = "SelectionMark" >   </ span > Classes</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" >< span class = "SelectionMark" >   </ span > Namespaces</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" >< span class = "SelectionMark" >   </ span > Files</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" >< span class = "SelectionMark" >   </ span > Functions</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" >< span class = "SelectionMark" >   </ span > Variables</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" >< span class = "SelectionMark" >   </ span > Typedefs</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" >< span class = "SelectionMark" >   </ 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 > |
< a href = "#pri-methods" > Private Member Functions</ a > |
< a href = "#pri-attribs" > Private Attributes</ a > |
< 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 < < a class = "el" href = "TelegramBot_8h_source.html" > TelegramBot.h</ a > > </ 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" >   </ 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" >   </ td ></ tr >
< tr class = "memitem:a52f2a5f734bac5f83d2c0e5068618646" >< td class = "memItemLeft" align = "right" valign = "top" >   </ 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" >   </ td ></ tr >
< tr class = "memitem:a398bd76186e27d514afd835c5437c6ed" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ 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" >   </ td ></ tr >
< tr class = "memitem:aabd1a825b1d7f127f15bf336b985d70d" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ 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" >   </ td ></ tr >
< tr class = "memitem:af6fbb842f679b33dd8a60f94f82d7c81" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ 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" >   </ td ></ tr >
< tr class = "memitem:a1645dae5fdfb1437bb8976f44c237563" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ 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" >   </ td ></ tr >
< tr class = "memitem:ac9fdf927b0ebf72b40a0a75639e39d18" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ 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" >   </ td ></ tr >
< tr class = "memitem:a7c54766f656974b35f03ea510d7b6a4f" >< td class = "memItemLeft" align = "right" valign = "top" >< a class = "el" href = "classTelegram_1_1Message.html" > Telegram::Message</ a > *  </ 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" >   </ td ></ tr >
< tr class = "memitem:aae9aba06108ce34f9766199c6588e1d6" >< td class = "memItemLeft" align = "right" valign = "top" > std::map< std::string, < a class = "el" href = "structTelegram_1_1TCommand.html" > TCommand</ a > >  </ 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" >   </ 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  </ 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" >   </ td ></ tr >
< tr class = "memitem:a7e07f1ca99390958ef5c6c95cbf18258" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "classTelegram_1_1TelegramBot.html#a7e07f1ca99390958ef5c6c95cbf18258" > apiRequest</ a > (std::string, std::map< std::string, std::string > )</ td ></ tr >
< tr class = "separator:a7e07f1ca99390958ef5c6c95cbf18258" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
< tr class = "memitem:a9ee0c2d12f906cb2e0a9b7fb2d7e45a5" >< td class = "memItemLeft" align = "right" valign = "top" > void  </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "classTelegram_1_1TelegramBot.html#a9ee0c2d12f906cb2e0a9b7fb2d7e45a5" > apiRequestJson</ a > (std::string, std::map< std::string, std::string > )</ td ></ tr >
< tr class = "separator:a9ee0c2d12f906cb2e0a9b7fb2d7e45a5" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
< tr class = "memitem:aed4dd1ce506259c0e82f0c46fe125ca4" >< td class = "memItemLeft" align = "right" valign = "top" > std::string  </ 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" >   </ 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  </ 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" >   </ td ></ tr >
< tr class = "memitem:a27ee4520baa0cf7f36ec6f13e69867a5" >< td class = "memItemLeft" align = "right" valign = "top" >< a class = "el" href = "classTelegram_1_1Message.html" > Telegram::Message</ a > *  </ 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" >   </ td ></ tr >
< tr class = "memitem:a4729f977e1d564326f0061c1417dc09c" >< td class = "memItemLeft" align = "right" valign = "top" >< a class = "el" href = "namespaceTelegram.html#ad82f4bcddd3c7921e8842bb30170a1c2" > TCommandMap</ a >   </ 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" >   </ td ></ tr >
< tr class = "memitem:a33ce0cbad266e831c834aa2e3d854e5a" >< td class = "memItemLeft" align = "right" valign = "top" > Json::Int64  </ 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" >   </ td ></ tr >
</ table >
2016-05-02 14:20:18 +02:00
< 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#l00026" > 26</ a > of file < a class = "el" href = "TelegramBot_8h_source.html" > TelegramBot.h</ a > .</ p >
</ div >< h2 class = "groupheader" > Constructor & Destructor Documentation</ h2 >
2016-05-02 10:17:19 +02:00
< 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" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > token</ em ></ td >< td > )</ td >
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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 >   </ td >
< td class = "paramname" >< em > cmd</ em ></ td >< td > )</ td >
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > method</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > std::map< std::string, std::string >  </ td >
< td class = "paramname" >< em > parameters</ em >   </ 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" >
2016-05-02 14:20:18 +02:00
< p > A generic API request </ p >
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00123" > 123</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > method</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > std::map< std::string, std::string >  </ td >
< td class = "paramname" >< em > parameters</ em >   </ 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" >
2016-05-02 14:20:18 +02:00
< p > An API request, posting JSON data </ p >
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00160" > 160</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00109" > 109</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00104" > 104</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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  </ 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" >
2016-05-02 14:20:18 +02:00
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00115" > 115</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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  </ 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" >
2016-05-02 14:20:18 +02:00
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00187" > 187</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > message</ em ></ td >< td > )</ td >
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > message</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > Json::Int64  </ td >
< td class = "paramname" >< em > chat_id</ em >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > message</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > std::string  </ td >
< td class = "paramname" >< em > chat_id</ em >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< p > Definition at line < a class = "el" href = "TelegramBot_8cc_source.html#l00095" > 95</ a > of file < a class = "el" href = "TelegramBot_8cc_source.html" > TelegramBot.cc</ a > .</ p >
2016-05-02 10:17:19 +02:00
</ 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  </ td >
< td class = "paramname" >< em > url</ em ></ td >< td > )</ td >
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-05-02 14:20:18 +02:00
< p > Set the webhook The web hook URL is like < a href = "https://" > https://</ a > < your domain> =""> /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 >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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" >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ div >
</ div >
< hr /> The documentation for this class was generated from the following files:< ul >
2016-05-02 14:20:18 +02:00
< 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 >
2016-05-02 10:17:19 +02:00
</ 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 >
2016-05-02 14:20:18 +02:00
< li class = "footer" > Generated on Mon May 2 2016 14:19:24 for LibTgBotPP by
2016-05-02 10:17:19 +02:00
< 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 >