diff options
Diffstat (limited to 'docs/class_tg_bot_1_1_api.html')
-rw-r--r-- | docs/class_tg_bot_1_1_api.html | 4155 |
1 files changed, 0 insertions, 4155 deletions
diff --git a/docs/class_tg_bot_1_1_api.html b/docs/class_tg_bot_1_1_api.html deleted file mode 100644 index 9688ea8..0000000 --- a/docs/class_tg_bot_1_1_api.html +++ /dev/null @@ -1,4155 +0,0 @@ -<!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.11"/> -<title>tgbot-cpp: TgBot::Api 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="navtreedata.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/searchdata.js"></script> -<script type="text/javascript" src="search/search.js"></script> -<script type="text/javascript"> - $(document).ready(function() { init_search(); }); -</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 id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">tgbot-cpp - </div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.11 --> -<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="modules.html"><span>Modules</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="hierarchy.html"><span>Class Hierarchy</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('class_tg_bot_1_1_api.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)"> -</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="#friends">Friends</a> | -<a href="class_tg_bot_1_1_api-members.html">List of all members</a> </div> - <div class="headertitle"> -<div class="title">TgBot::Api Class Reference<div class="ingroups"><a class="el" href="group__general.html">General</a></div></div> </div> -</div><!--header--> -<div class="contents"> - -<p>This class executes telegram api methods. Telegram docs: <a href="https://core.telegram.org/bots/api#available-methods">https://core.telegram.org/bots/api#available-methods</a> - <a href="class_tg_bot_1_1_api.html#details">More...</a></p> - -<p><code>#include <<a class="el" href="_api_8h_source.html">Api.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:ac0e4615a8944c07e7db3811ee84f2a94"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ac0e4615a8944c07e7db3811ee84f2a94">Api</a> (const std::string &token)</td></tr> -<tr class="separator:ac0e4615a8944c07e7db3811ee84f2a94"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:abf3e04fb3ea66e0d40c40cef3aa0d5c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_user.html#ae6ea24aef677abaaf0fd7d60adf5be79">User::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#abf3e04fb3ea66e0d40c40cef3aa0d5c1">getMe</a> () const </td></tr> -<tr class="memdesc:abf3e04fb3ea66e0d40c40cef3aa0d5c1"><td class="mdescLeft"> </td><td class="mdescRight">A simple method for testing your bot's auth token. <a href="#abf3e04fb3ea66e0d40c40cef3aa0d5c1">More...</a><br /></td></tr> -<tr class="separator:abf3e04fb3ea66e0d40c40cef3aa0d5c1"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a06a2a2462af86f236e6524d9dc4c3e0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a06a2a2462af86f236e6524d9dc4c3e0a">sendMessage</a> (int64_t chatId, const std::string &text, bool disableWebPagePreview=false, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:a06a2a2462af86f236e6524d9dc4c3e0a"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send text messages. <a href="#a06a2a2462af86f236e6524d9dc4c3e0a">More...</a><br /></td></tr> -<tr class="separator:a06a2a2462af86f236e6524d9dc4c3e0a"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:abe7060a706003a13dfc3951cad0af9ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#abe7060a706003a13dfc3951cad0af9ed">forwardMessage</a> (int64_t chatId, int64_t fromChatId, int32_t messageId, bool disableNotification=false) const </td></tr> -<tr class="memdesc:abe7060a706003a13dfc3951cad0af9ed"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to forward messages of any kind. <a href="#abe7060a706003a13dfc3951cad0af9ed">More...</a><br /></td></tr> -<tr class="separator:abe7060a706003a13dfc3951cad0af9ed"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ac9731240a7670422209b62f84d8d3b88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ac9731240a7670422209b62f84d8d3b88">sendPhoto</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> photo, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:ac9731240a7670422209b62f84d8d3b88"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send photos. <a href="#ac9731240a7670422209b62f84d8d3b88">More...</a><br /></td></tr> -<tr class="separator:ac9731240a7670422209b62f84d8d3b88"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aaeecfd8c04932ae71b2bba35cee828c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aaeecfd8c04932ae71b2bba35cee828c0">sendPhoto</a> (int64_t chatId, const std::string &photoId, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:aaeecfd8c04932ae71b2bba35cee828c0"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send photos. <a href="#aaeecfd8c04932ae71b2bba35cee828c0">More...</a><br /></td></tr> -<tr class="separator:aaeecfd8c04932ae71b2bba35cee828c0"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa0c9cd2ca4282f883b9b340de039dae6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa0c9cd2ca4282f883b9b340de039dae6">sendAudio</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> audio, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:aa0c9cd2ca4282f883b9b340de039dae6"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). <a href="#aa0c9cd2ca4282f883b9b340de039dae6">More...</a><br /></td></tr> -<tr class="separator:aa0c9cd2ca4282f883b9b340de039dae6"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a0dfb5ae8d40232b5e83dfbc41b0aa2e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a0dfb5ae8d40232b5e83dfbc41b0aa2e2">sendAudio</a> (int64_t chatId, const std::string &audioId, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:a0dfb5ae8d40232b5e83dfbc41b0aa2e2"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). <a href="#a0dfb5ae8d40232b5e83dfbc41b0aa2e2">More...</a><br /></td></tr> -<tr class="separator:a0dfb5ae8d40232b5e83dfbc41b0aa2e2"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ad9985830c9232994f87fa0d7d31a3d8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ad9985830c9232994f87fa0d7d31a3d8a">sendDocument</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> document, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:ad9985830c9232994f87fa0d7d31a3d8a"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send general files. <a href="#ad9985830c9232994f87fa0d7d31a3d8a">More...</a><br /></td></tr> -<tr class="separator:ad9985830c9232994f87fa0d7d31a3d8a"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:afc838be17df669d600260c1ca299a826"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#afc838be17df669d600260c1ca299a826">sendDocument</a> (int64_t chatId, const std::string &documentId, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:afc838be17df669d600260c1ca299a826"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send general files. <a href="#afc838be17df669d600260c1ca299a826">More...</a><br /></td></tr> -<tr class="separator:afc838be17df669d600260c1ca299a826"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a7ce5b3735e59a6cc7fc75badabb05371"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a7ce5b3735e59a6cc7fc75badabb05371">sendInvoice</a> (int64_t chatId, const std::string &title, const std::string &description, const std::string &payload, const std::string &providerToken, const std::string &startParameter, const std::string &currency, const std::vector< <a class="el" href="class_tg_bot_1_1_labeled_price.html#a1d53775f4034427a2dfaae9ef176796c">LabeledPrice::Ptr</a> > &prices, const std::string &providerData="", const std::string &photoUrl="", int32_t photoSize=0, int32_t photoWidth=0, int32_t photoHeight=0, bool needName=false, bool needPhoneNumber=false, bool needEmail=false, bool needShippingAddress=false, bool sendPhoneNumberToProvider=false, bool sendEmailToProvider=false, bool isFlexible=false, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), bool disableNotification=false) const </td></tr> -<tr class="memdesc:a7ce5b3735e59a6cc7fc75badabb05371"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send invoices. <a href="#a7ce5b3735e59a6cc7fc75badabb05371">More...</a><br /></td></tr> -<tr class="separator:a7ce5b3735e59a6cc7fc75badabb05371"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a2638761a2ac9a220fd6bb47185cfeff8"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a2638761a2ac9a220fd6bb47185cfeff8">answerShippingQuery</a> (const std::string &shippingQueryId, bool ok, const std::vector< <a class="el" href="class_tg_bot_1_1_shipping_option.html#af97bf7d55ed3bcd3090c08885f010f60">ShippingOption::Ptr</a> > &shippingOptions=std::vector< <a class="el" href="class_tg_bot_1_1_shipping_option.html#af97bf7d55ed3bcd3090c08885f010f60">ShippingOption::Ptr</a> >(), const std::string &errorMessage="") const </td></tr> -<tr class="memdesc:a2638761a2ac9a220fd6bb47185cfeff8"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to reply to shipping queries. <a href="#a2638761a2ac9a220fd6bb47185cfeff8">More...</a><br /></td></tr> -<tr class="separator:a2638761a2ac9a220fd6bb47185cfeff8"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a9b7cea0c518d27095803b1be9e769f7c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a9b7cea0c518d27095803b1be9e769f7c">answerPreCheckoutQuery</a> (const std::string &preCheckoutQueryId, bool ok, const std::string &errorMessage="") const </td></tr> -<tr class="memdesc:a9b7cea0c518d27095803b1be9e769f7c"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to respond to such pre-checkout queries. <a href="#a9b7cea0c518d27095803b1be9e769f7c">More...</a><br /></td></tr> -<tr class="separator:a9b7cea0c518d27095803b1be9e769f7c"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a59567254a0b6b1650a2d947a777d7710"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a59567254a0b6b1650a2d947a777d7710">sendSticker</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> sticker, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), bool disableNotification=false) const </td></tr> -<tr class="memdesc:a59567254a0b6b1650a2d947a777d7710"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send .webp stickers. <a href="#a59567254a0b6b1650a2d947a777d7710">More...</a><br /></td></tr> -<tr class="separator:a59567254a0b6b1650a2d947a777d7710"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a2cead806d48ab02c6cd31bee06916a7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a2cead806d48ab02c6cd31bee06916a7b">sendSticker</a> (int64_t chatId, const std::string &stickerId, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), bool disableNotification=false) const </td></tr> -<tr class="memdesc:a2cead806d48ab02c6cd31bee06916a7b"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send .webp stickers. <a href="#a2cead806d48ab02c6cd31bee06916a7b">More...</a><br /></td></tr> -<tr class="separator:a2cead806d48ab02c6cd31bee06916a7b"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a89bb062bdba276f1faa2b0d222718cb1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_sticker_set.html#ad3c58f08ddacdb946507cd96a3d54421">StickerSet::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a89bb062bdba276f1faa2b0d222718cb1">getStickerSet</a> (const std::string &name) const </td></tr> -<tr class="memdesc:a89bb062bdba276f1faa2b0d222718cb1"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get a sticker set. <a href="#a89bb062bdba276f1faa2b0d222718cb1">More...</a><br /></td></tr> -<tr class="separator:a89bb062bdba276f1faa2b0d222718cb1"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a910cdf6916c4526e8c3d449bebb55cf1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a910cdf6916c4526e8c3d449bebb55cf1">uploadStickerFile</a> (int32_t userId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> pngSticker) const </td></tr> -<tr class="memdesc:a910cdf6916c4526e8c3d449bebb55cf1"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). <a href="#a910cdf6916c4526e8c3d449bebb55cf1">More...</a><br /></td></tr> -<tr class="separator:a910cdf6916c4526e8c3d449bebb55cf1"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af67640a49edfa401ac72db694439fabb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#af67640a49edfa401ac72db694439fabb">createNewStickerSet</a> (int32_t userId, const std::string &name, const std::string &title, <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> pngSticker, const std::string &emojis, bool containsMasks=false, <a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> maskPosition=nullptr) const </td></tr> -<tr class="memdesc:af67640a49edfa401ac72db694439fabb"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. <a href="#af67640a49edfa401ac72db694439fabb">More...</a><br /></td></tr> -<tr class="separator:af67640a49edfa401ac72db694439fabb"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a94803c798828ce9efdcb19575475c642"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a94803c798828ce9efdcb19575475c642">createNewStickerSet</a> (int32_t userId, const std::string &name, const std::string &title, const std::string &pngSticker, const std::string &emojis, bool containsMasks=false, <a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> maskPosition=nullptr) const </td></tr> -<tr class="memdesc:a94803c798828ce9efdcb19575475c642"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. <a href="#a94803c798828ce9efdcb19575475c642">More...</a><br /></td></tr> -<tr class="separator:a94803c798828ce9efdcb19575475c642"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aba162af7ac35baf2259b7c2e41b2ed52"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aba162af7ac35baf2259b7c2e41b2ed52">addStickerToSet</a> (int32_t userId, const std::string &name, const std::string &title, <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> pngSticker, const std::string &emojis, <a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> maskPosition=nullptr) const </td></tr> -<tr class="memdesc:aba162af7ac35baf2259b7c2e41b2ed52"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to add a new sticker to a set created by the bot. <a href="#aba162af7ac35baf2259b7c2e41b2ed52">More...</a><br /></td></tr> -<tr class="separator:aba162af7ac35baf2259b7c2e41b2ed52"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ad5ec52f74b334283d21d3d294c8e6f2d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ad5ec52f74b334283d21d3d294c8e6f2d">addStickerToSet</a> (int32_t userId, const std::string &name, const std::string &title, const std::string &pngSticker, const std::string &emojis, <a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> maskPosition=nullptr) const </td></tr> -<tr class="memdesc:ad5ec52f74b334283d21d3d294c8e6f2d"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to add a new sticker to a set created by the bot. <a href="#ad5ec52f74b334283d21d3d294c8e6f2d">More...</a><br /></td></tr> -<tr class="separator:ad5ec52f74b334283d21d3d294c8e6f2d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6394ad645519b4faed3f4f64273d3ffd"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a6394ad645519b4faed3f4f64273d3ffd">setStickerPositionInSet</a> (const std::string &sticker, uint32_t position) const </td></tr> -<tr class="memdesc:a6394ad645519b4faed3f4f64273d3ffd"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to move a sticker in a set created by the bot to a specific position. <a href="#a6394ad645519b4faed3f4f64273d3ffd">More...</a><br /></td></tr> -<tr class="separator:a6394ad645519b4faed3f4f64273d3ffd"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a4f052f6b5912c95ca7e2a98e19a49715"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a4f052f6b5912c95ca7e2a98e19a49715">deleteStickerPositionInSet</a> (const std::string &sticker) const </td></tr> -<tr class="memdesc:a4f052f6b5912c95ca7e2a98e19a49715"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to delete a sticker from a set created by the bot. <a href="#a4f052f6b5912c95ca7e2a98e19a49715">More...</a><br /></td></tr> -<tr class="separator:a4f052f6b5912c95ca7e2a98e19a49715"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:acb86126bb7bc17af73350f09987b4e50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#acb86126bb7bc17af73350f09987b4e50">sendVideo</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> video, bool supportsStreaming=false, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:acb86126bb7bc17af73350f09987b4e50"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). <a href="#acb86126bb7bc17af73350f09987b4e50">More...</a><br /></td></tr> -<tr class="separator:acb86126bb7bc17af73350f09987b4e50"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a9c23f65bd4fca613300e449a5d057722"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a9c23f65bd4fca613300e449a5d057722">sendVideo</a> (int64_t chatId, const std::string &videoId, bool supportsStreaming=false, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:a9c23f65bd4fca613300e449a5d057722"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). <a href="#a9c23f65bd4fca613300e449a5d057722">More...</a><br /></td></tr> -<tr class="separator:a9c23f65bd4fca613300e449a5d057722"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aafc9eac23e52cf9f0831b0b47386f44d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aafc9eac23e52cf9f0831b0b47386f44d">sendVideoNote</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> videoNote, int64_t replyToMessageId=0, bool disableNotification=false, int32_t duration=0, int32_t length=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=<a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>())</td></tr> -<tr class="memdesc:aafc9eac23e52cf9f0831b0b47386f44d"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send video messages. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. <a href="#aafc9eac23e52cf9f0831b0b47386f44d">More...</a><br /></td></tr> -<tr class="separator:aafc9eac23e52cf9f0831b0b47386f44d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a00934efcb21f69e71ff6ab0eca9617a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a00934efcb21f69e71ff6ab0eca9617a5">sendVideoNote</a> (int64_t chatId, const std::string &videoNote, int64_t replyToMessageId=0, bool disableNotification=false, int32_t duration=0, int32_t length=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=<a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>())</td></tr> -<tr class="memdesc:a00934efcb21f69e71ff6ab0eca9617a5"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send video messages. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. <a href="#a00934efcb21f69e71ff6ab0eca9617a5">More...</a><br /></td></tr> -<tr class="separator:a00934efcb21f69e71ff6ab0eca9617a5"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a2028955491cb7057f5150634583e4ac3"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a2028955491cb7057f5150634583e4ac3">sendMediaGroup</a> (int64_t chatId, const std::vector< <a class="el" href="class_tg_bot_1_1_input_media.html#abdc38ae21d5213ead3720db082ef1f9c">InputMedia::Ptr</a> > &media, bool disableNotification=false, int32_t replyToMessageId=0) const </td></tr> -<tr class="memdesc:a2028955491cb7057f5150634583e4ac3"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send a group of photos or videos as an album. <a href="#a2028955491cb7057f5150634583e4ac3">More...</a><br /></td></tr> -<tr class="separator:a2028955491cb7057f5150634583e4ac3"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6664f4fa87a3648afc5a9f3023a7887d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a6664f4fa87a3648afc5a9f3023a7887d">sendVoice</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> voice, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:a6664f4fa87a3648afc5a9f3023a7887d"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. <a href="#a6664f4fa87a3648afc5a9f3023a7887d">More...</a><br /></td></tr> -<tr class="separator:a6664f4fa87a3648afc5a9f3023a7887d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:addfd50730c548e33d61f7ee81eb8c6ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#addfd50730c548e33d61f7ee81eb8c6ac">sendVoice</a> (int64_t chatId, const std::string &voiceId, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), const std::string &parseMode="", bool disableNotification=false) const </td></tr> -<tr class="memdesc:addfd50730c548e33d61f7ee81eb8c6ac"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. <a href="#addfd50730c548e33d61f7ee81eb8c6ac">More...</a><br /></td></tr> -<tr class="separator:addfd50730c548e33d61f7ee81eb8c6ac"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a1f57d0622b6dc52d64f590e4468c20f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a1f57d0622b6dc52d64f590e4468c20f8">sendGame</a> (int64_t chatId, const std::string &gameShortName, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >(), bool disableNotification=false) const </td></tr> -<tr class="memdesc:a1f57d0622b6dc52d64f590e4468c20f8"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send a game. <a href="#a1f57d0622b6dc52d64f590e4468c20f8">More...</a><br /></td></tr> -<tr class="separator:a1f57d0622b6dc52d64f590e4468c20f8"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:afa6fd752ac02553795bfef4290f9fb66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#afa6fd752ac02553795bfef4290f9fb66">sendLocation</a> (int64_t chatId, float latitude, float longitude, uint32_t livePeriod=0, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >(), bool disableNotification=false) const </td></tr> -<tr class="memdesc:afa6fd752ac02553795bfef4290f9fb66"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send point on the map. <a href="#afa6fd752ac02553795bfef4290f9fb66">More...</a><br /></td></tr> -<tr class="separator:afa6fd752ac02553795bfef4290f9fb66"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af8056aea6a062a5c4c629c7dc5cfe8c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#af8056aea6a062a5c4c629c7dc5cfe8c0">editMessageLiveLocation</a> (float latitude, float longitude, int64_t chatId=0, int32_t messageId=0, int32_t inlineMessageId=0, const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >()) const </td></tr> -<tr class="memdesc:af8056aea6a062a5c4c629c7dc5cfe8c0"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to edit live location messages sent by the bot or via the bot (for inline bots). <a href="#af8056aea6a062a5c4c629c7dc5cfe8c0">More...</a><br /></td></tr> -<tr class="separator:af8056aea6a062a5c4c629c7dc5cfe8c0"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ab5fc9e83dee40c6040fe1c56a882c905"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ab5fc9e83dee40c6040fe1c56a882c905">stopMessageLiveLocation</a> (int64_t chatId=0, int32_t messageId=0, int32_t inlineMessageId=0, const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >()) const </td></tr> -<tr class="memdesc:ab5fc9e83dee40c6040fe1c56a882c905"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to edit live location messages sent by the bot or via the bot (for inline bots). <a href="#ab5fc9e83dee40c6040fe1c56a882c905">More...</a><br /></td></tr> -<tr class="separator:ab5fc9e83dee40c6040fe1c56a882c905"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:afbd6a5c72f53341ccbd71033d45aac4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#afbd6a5c72f53341ccbd71033d45aac4a">sendVenue</a> (int64_t chatId, float latitude, float longitude, const std::string &title, const std::string &address, const std::string &foursquareId="", bool disableNotification=false, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()) const </td></tr> -<tr class="memdesc:afbd6a5c72f53341ccbd71033d45aac4a"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send information about a venue. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. <a href="#afbd6a5c72f53341ccbd71033d45aac4a">More...</a><br /></td></tr> -<tr class="separator:afbd6a5c72f53341ccbd71033d45aac4a"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a48415173f58fe4c4cc8ec7cc5c836cb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a48415173f58fe4c4cc8ec7cc5c836cb7">sendContact</a> (int64_t chatId, const std::string &phoneNumber, const std::string &firstName, const std::string &lastName="", bool disableNotification=false, int32_t replyToMessageId=0, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()) const </td></tr> -<tr class="memdesc:a48415173f58fe4c4cc8ec7cc5c836cb7"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send phone contacts. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. <a href="#a48415173f58fe4c4cc8ec7cc5c836cb7">More...</a><br /></td></tr> -<tr class="separator:a48415173f58fe4c4cc8ec7cc5c836cb7"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a1a901654ddad96464a5bff3210932fc4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a1a901654ddad96464a5bff3210932fc4">sendChatAction</a> (int64_t chatId, const std::string &action) const </td></tr> -<tr class="memdesc:a1a901654ddad96464a5bff3210932fc4"><td class="mdescLeft"> </td><td class="mdescRight">Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). <a href="#a1a901654ddad96464a5bff3210932fc4">More...</a><br /></td></tr> -<tr class="separator:a1a901654ddad96464a5bff3210932fc4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a2ec0062e6fc92767298b663c6e354e69"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_user_profile_photos.html#a734352c5b115ea29e639f01462187d55">UserProfilePhotos::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a2ec0062e6fc92767298b663c6e354e69">getUserProfilePhotos</a> (int32_t userId, int32_t offset=0, int32_t limit=100) const </td></tr> -<tr class="memdesc:a2ec0062e6fc92767298b663c6e354e69"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get a list of profile pictures for a user. <a href="#a2ec0062e6fc92767298b663c6e354e69">More...</a><br /></td></tr> -<tr class="separator:a2ec0062e6fc92767298b663c6e354e69"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:afd78c8ca4b91c632df03e51eb967075b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#afd78c8ca4b91c632df03e51eb967075b">getFile</a> (const std::string &fileId) const </td></tr> -<tr class="memdesc:afd78c8ca4b91c632df03e51eb967075b"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. <a href="#afd78c8ca4b91c632df03e51eb967075b">More...</a><br /></td></tr> -<tr class="separator:afd78c8ca4b91c632df03e51eb967075b"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a40a68303a485e8dc778af103fefa76a4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a40a68303a485e8dc778af103fefa76a4">leaveChat</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:a40a68303a485e8dc778af103fefa76a4"><td class="mdescLeft"> </td><td class="mdescRight">Use this method for your bot to leave a group, supergroup or channel. <a href="#a40a68303a485e8dc778af103fefa76a4">More...</a><br /></td></tr> -<tr class="separator:a40a68303a485e8dc778af103fefa76a4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ae2233d6a8b8cf51e4be08853d972ba20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_chat.html#a9818e295b599a08b77abefb38de75e48">Chat::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ae2233d6a8b8cf51e4be08853d972ba20">getChat</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:ae2233d6a8b8cf51e4be08853d972ba20"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a <a class="el" href="class_tg_bot_1_1_chat.html" title="This object represents a Telegram Chat. ">Chat</a> object on success. <a href="#ae2233d6a8b8cf51e4be08853d972ba20">More...</a><br /></td></tr> -<tr class="separator:ae2233d6a8b8cf51e4be08853d972ba20"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a09af96dadde7bce75045924bc137f73e"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a09af96dadde7bce75045924bc137f73e">getChatAdministrators</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:a09af96dadde7bce75045924bc137f73e"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get a list of administrators in a chat. On success, returns an Array of <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned. <a href="#a09af96dadde7bce75045924bc137f73e">More...</a><br /></td></tr> -<tr class="separator:a09af96dadde7bce75045924bc137f73e"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:add7de90c14200ebc0654f6ff94615dc4"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#add7de90c14200ebc0654f6ff94615dc4">getChatMembersCount</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:add7de90c14200ebc0654f6ff94615dc4"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get the number of members in a chat. Returns Int on success. <a href="#add7de90c14200ebc0654f6ff94615dc4">More...</a><br /></td></tr> -<tr class="separator:add7de90c14200ebc0654f6ff94615dc4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa2d667d976f4c6e19f3df9473f5b0cb4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa2d667d976f4c6e19f3df9473f5b0cb4">getChatMember</a> (int64_t chatId, int32_t userId) const </td></tr> -<tr class="memdesc:aa2d667d976f4c6e19f3df9473f5b0cb4"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. <a href="#aa2d667d976f4c6e19f3df9473f5b0cb4">More...</a><br /></td></tr> -<tr class="separator:aa2d667d976f4c6e19f3df9473f5b0cb4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ac9d05feddc2844907335cf07ad5d9a51"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ac9d05feddc2844907335cf07ad5d9a51">setChatStickerSet</a> (int64_t chatId, const std::string &stickerSetName) const </td></tr> -<tr class="memdesc:ac9d05feddc2844907335cf07ad5d9a51"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. <a href="#ac9d05feddc2844907335cf07ad5d9a51">More...</a><br /></td></tr> -<tr class="separator:ac9d05feddc2844907335cf07ad5d9a51"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a74f9c4536b999ae3d3e04cf7e2fc107d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a74f9c4536b999ae3d3e04cf7e2fc107d">deleteChatStickerSet</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:a74f9c4536b999ae3d3e04cf7e2fc107d"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. <a href="#a74f9c4536b999ae3d3e04cf7e2fc107d">More...</a><br /></td></tr> -<tr class="separator:a74f9c4536b999ae3d3e04cf7e2fc107d"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a9f1cbc18cfd16def2bd4d4b816e87cfa"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a9f1cbc18cfd16def2bd4d4b816e87cfa">answerCallbackQuery</a> (const std::string &callbackQueryId, const std::string &text="", bool showAlert=false, const std::string &url="", int32_t cacheTime=0) const </td></tr> -<tr class="memdesc:a9f1cbc18cfd16def2bd4d4b816e87cfa"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. <a href="#a9f1cbc18cfd16def2bd4d4b816e87cfa">More...</a><br /></td></tr> -<tr class="separator:a9f1cbc18cfd16def2bd4d4b816e87cfa"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a96e0fc377bddcff4e6daadfbe2c06114"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a96e0fc377bddcff4e6daadfbe2c06114">editMessageText</a> (const std::string &text, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const std::string &parseMode="", bool disableWebPagePreview=false, const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()) const </td></tr> -<tr class="memdesc:a96e0fc377bddcff4e6daadfbe2c06114"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to edit text and game messages sent by the bot or via the bot (for inline bots) <a href="#a96e0fc377bddcff4e6daadfbe2c06114">More...</a><br /></td></tr> -<tr class="separator:a96e0fc377bddcff4e6daadfbe2c06114"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a34017cf57676c8a0255f3083f12a9d65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a34017cf57676c8a0255f3083f12a9d65">editMessageCaption</a> (int64_t chatId=0, int32_t messageId=0, const std::string &caption="", const std::string &inlineMessageId="", const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()) const </td></tr> -<tr class="memdesc:a34017cf57676c8a0255f3083f12a9d65"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). <a href="#a34017cf57676c8a0255f3083f12a9d65">More...</a><br /></td></tr> -<tr class="separator:a34017cf57676c8a0255f3083f12a9d65"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a7c737b0c3cc0b9f3894ac51d9210fba0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a7c737b0c3cc0b9f3894ac51d9210fba0">editMessageReplyMarkup</a> (int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> replyMarkup=std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()) const </td></tr> -<tr class="memdesc:a7c737b0c3cc0b9f3894ac51d9210fba0"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). <a href="#a7c737b0c3cc0b9f3894ac51d9210fba0">More...</a><br /></td></tr> -<tr class="separator:a7c737b0c3cc0b9f3894ac51d9210fba0"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6302f338a5af745533847c62e2c91018"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a6302f338a5af745533847c62e2c91018">deleteMessage</a> (int64_t chatId, int32_t messageId) const </td></tr> -<tr class="memdesc:a6302f338a5af745533847c62e2c91018"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to delete messages sent by bot (or by other users if bot is admin). <a href="#a6302f338a5af745533847c62e2c91018">More...</a><br /></td></tr> -<tr class="separator:a6302f338a5af745533847c62e2c91018"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa43007edecb1c3a8438e3217fcfbbc94"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="class_tg_bot_1_1_update.html#abace63cf3605fe7a480a3bb839a672a8">Update::Ptr</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa43007edecb1c3a8438e3217fcfbbc94">getUpdates</a> (int32_t offset=0, int32_t limit=100, int32_t timeout=0, const StringArrayPtr &allowedUpdates=nullptr) const </td></tr> -<tr class="memdesc:aa43007edecb1c3a8438e3217fcfbbc94"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to receive incoming updates using long polling. <a href="#aa43007edecb1c3a8438e3217fcfbbc94">More...</a><br /></td></tr> -<tr class="separator:aa43007edecb1c3a8438e3217fcfbbc94"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ace37f034356c0afd60c03799bf263f71"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#ace37f034356c0afd60c03799bf263f71">setWebhook</a> (const std::string &url="", const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> certificate=nullptr, int32_t maxConnection=40, const StringArrayPtr &allowedUpdates=nullptr) const </td></tr> -<tr class="memdesc:ace37f034356c0afd60c03799bf263f71"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a>. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. <a href="#ace37f034356c0afd60c03799bf263f71">More...</a><br /></td></tr> -<tr class="separator:ace37f034356c0afd60c03799bf263f71"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af924cf5917fcb39f9c3df91a748d0347"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#af924cf5917fcb39f9c3df91a748d0347">deleteWebhook</a> () const </td></tr> -<tr class="memdesc:af924cf5917fcb39f9c3df91a748d0347"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to remove webhook integration if you decide to switch back to getUpdates. <a href="#af924cf5917fcb39f9c3df91a748d0347">More...</a><br /></td></tr> -<tr class="separator:af924cf5917fcb39f9c3df91a748d0347"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a27558973e48073b292ad49e613c7da8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_webhook_info.html#a2280093713d1304207d8bba2204648d6">WebhookInfo::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a27558973e48073b292ad49e613c7da8e">getWebhookInfo</a> () const </td></tr> -<tr class="memdesc:a27558973e48073b292ad49e613c7da8e"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get current webhook status. <a href="#a27558973e48073b292ad49e613c7da8e">More...</a><br /></td></tr> -<tr class="separator:a27558973e48073b292ad49e613c7da8e"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af1191f022ce6029cc4889ceebc7189af"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#af1191f022ce6029cc4889ceebc7189af">answerInlineQuery</a> (const std::string &inlineQueryId, const std::vector< <a class="el" href="class_tg_bot_1_1_inline_query_result.html#af567dd95c4dae7c4a895e561a97ed4c5">InlineQueryResult::Ptr</a> > &results, int32_t cacheTime=300, bool isPersonal=false, const std::string &nextOffset="", const std::string &switchPmText="", const std::string &switchPmParameter="") const </td></tr> -<tr class="memdesc:af1191f022ce6029cc4889ceebc7189af"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to send answers to an inline query. No mode that 50 results per query are allowed. <a href="#af1191f022ce6029cc4889ceebc7189af">More...</a><br /></td></tr> -<tr class="separator:af1191f022ce6029cc4889ceebc7189af"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:af0b6c399430facc369c5592aa1ecf161"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#af0b6c399430facc369c5592aa1ecf161">kickChatMember</a> (int64_t chatId, int32_t userId, uint64_t untilDate=0) const </td></tr> -<tr class="memdesc:af0b6c399430facc369c5592aa1ecf161"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to kick a user from a group or a supergroup. <a href="#af0b6c399430facc369c5592aa1ecf161">More...</a><br /></td></tr> -<tr class="separator:af0b6c399430facc369c5592aa1ecf161"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a72fbbf1282eb25dc158db9ab2a39cacb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a72fbbf1282eb25dc158db9ab2a39cacb">unbanChatMember</a> (int64_t chatId, int32_t userId) const </td></tr> -<tr class="memdesc:a72fbbf1282eb25dc158db9ab2a39cacb"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to unban a previously kicked user in a supergroup. <a href="#a72fbbf1282eb25dc158db9ab2a39cacb">More...</a><br /></td></tr> -<tr class="separator:a72fbbf1282eb25dc158db9ab2a39cacb"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a87abb412b48b905e8cea6262c410363b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a87abb412b48b905e8cea6262c410363b">restrictChatMember</a> (int64_t chatId, int32_t userId, uint64_t untilDate=0, bool canSendMessages=false, bool canSendMediaMessages=false, bool canSendOtherMessages=false, bool canAddWebPagePreviews=false) const </td></tr> -<tr class="memdesc:a87abb412b48b905e8cea6262c410363b"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to restrict a user in a supergroup. <a href="#a87abb412b48b905e8cea6262c410363b">More...</a><br /></td></tr> -<tr class="separator:a87abb412b48b905e8cea6262c410363b"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a1938236a7e5fb80b60061d2edcbcbabc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a1938236a7e5fb80b60061d2edcbcbabc">promoteChatMember</a> (int64_t chatId, int32_t userId, bool canChangeInfo=false, bool canPostMessages=false, bool canEditMessages=false, bool canDeleteMessages=false, bool canInviteUsers=false, bool canPinMessages=false, bool canPromoteMembers=false) const </td></tr> -<tr class="memdesc:a1938236a7e5fb80b60061d2edcbcbabc"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to promote or demote a user in a supergroup or a channel. <a href="#a1938236a7e5fb80b60061d2edcbcbabc">More...</a><br /></td></tr> -<tr class="separator:a1938236a7e5fb80b60061d2edcbcbabc"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6061ec1d126165709955b526b17fd2c2"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a6061ec1d126165709955b526b17fd2c2">exportChatInviteLink</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:a6061ec1d126165709955b526b17fd2c2"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to generate a new invite link for a chat; any previously generated link is revoked. <a href="#a6061ec1d126165709955b526b17fd2c2">More...</a><br /></td></tr> -<tr class="separator:a6061ec1d126165709955b526b17fd2c2"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a53c636b18acde8eacdb26201808ad217"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a53c636b18acde8eacdb26201808ad217">setChatPhoto</a> (int64_t chatId, const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> photo) const </td></tr> -<tr class="memdesc:a53c636b18acde8eacdb26201808ad217"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to set a new profile photo for the chat. <a href="#a53c636b18acde8eacdb26201808ad217">More...</a><br /></td></tr> -<tr class="separator:a53c636b18acde8eacdb26201808ad217"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a154af6a79db40c4eecc006924836e025"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a154af6a79db40c4eecc006924836e025">deleteChatPhoto</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:a154af6a79db40c4eecc006924836e025"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to delete a chat photo. <a href="#a154af6a79db40c4eecc006924836e025">More...</a><br /></td></tr> -<tr class="separator:a154af6a79db40c4eecc006924836e025"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa680466fe9910e2c923717519bb90223"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa680466fe9910e2c923717519bb90223">setChatTitle</a> (int64_t chatId, const std::string &title) const </td></tr> -<tr class="memdesc:aa680466fe9910e2c923717519bb90223"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to change the title of a chat. <a href="#aa680466fe9910e2c923717519bb90223">More...</a><br /></td></tr> -<tr class="separator:aa680466fe9910e2c923717519bb90223"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a781b82abe744bc56d9e7c3e51cd54c53"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a781b82abe744bc56d9e7c3e51cd54c53">setChatDescription</a> (int64_t chatId, const std::string &description) const </td></tr> -<tr class="memdesc:a781b82abe744bc56d9e7c3e51cd54c53"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to change the description of a supergroup or a channel. <a href="#a781b82abe744bc56d9e7c3e51cd54c53">More...</a><br /></td></tr> -<tr class="separator:a781b82abe744bc56d9e7c3e51cd54c53"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a79fe90a632c8f2579ec8e371a42cb607"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a79fe90a632c8f2579ec8e371a42cb607">pinChatMessage</a> (int64_t chatId, int32_t messageId, bool disableNotification=false) const </td></tr> -<tr class="memdesc:a79fe90a632c8f2579ec8e371a42cb607"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to pin a message in a supergroup or a channel. <a href="#a79fe90a632c8f2579ec8e371a42cb607">More...</a><br /></td></tr> -<tr class="separator:a79fe90a632c8f2579ec8e371a42cb607"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa0e2429129522a75401bf4f9a034fb21"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa0e2429129522a75401bf4f9a034fb21">unpinChatMessage</a> (int64_t chatId) const </td></tr> -<tr class="memdesc:aa0e2429129522a75401bf4f9a034fb21"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to unpin a message in a supergroup or a channel. <a href="#aa0e2429129522a75401bf4f9a034fb21">More...</a><br /></td></tr> -<tr class="separator:aa0e2429129522a75401bf4f9a034fb21"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aa2b32e8b322719b0431b3d77b18fb09a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#aa2b32e8b322719b0431b3d77b18fb09a">setGameScore</a> (int32_t userId, int32_t score, bool force=false, bool disableEditMessage=false, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="") const </td></tr> -<tr class="memdesc:aa2b32e8b322719b0431b3d77b18fb09a"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to set the score of the specified user in a game. <a href="#aa2b32e8b322719b0431b3d77b18fb09a">More...</a><br /></td></tr> -<tr class="separator:aa2b32e8b322719b0431b3d77b18fb09a"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6a2ce85e426e9c2242ceefc933abde68"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="class_tg_bot_1_1_game_high_score.html#a25eccb9018f74176b5c0baf25db721f4">GameHighScore::Ptr</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a6a2ce85e426e9c2242ceefc933abde68">getGameHighScores</a> (int32_t userId, int32_t score, bool force=false, bool disableEditMessage=false, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="") const </td></tr> -<tr class="memdesc:a6a2ce85e426e9c2242ceefc933abde68"><td class="mdescLeft"> </td><td class="mdescRight">Use this method to get data for high score tables. <a href="#a6a2ce85e426e9c2242ceefc933abde68">More...</a><br /></td></tr> -<tr class="separator:a6a2ce85e426e9c2242ceefc933abde68"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a093648c83194f1fef00c3cf3fbec3ae4"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#a093648c83194f1fef00c3cf3fbec3ae4">downloadFile</a> (const std::string &filePath, const std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> > &args=std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> >()) const </td></tr> -<tr class="memdesc:a093648c83194f1fef00c3cf3fbec3ae4"><td class="mdescLeft"> </td><td class="mdescRight">Downloads file from Telegram and saves it in memory. <a href="#a093648c83194f1fef00c3cf3fbec3ae4">More...</a><br /></td></tr> -<tr class="separator:a093648c83194f1fef00c3cf3fbec3ae4"><td class="memSeparator" colspan="2"> </td></tr> -</table><table class="memberdecls"> -<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> -Friends</h2></td></tr> -<tr class="memitem:afb5d57ac6b56fe83e7894e3b686c3339"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_tg_bot_1_1_api.html#afb5d57ac6b56fe83e7894e3b686c3339">Bot</a></td></tr> -<tr class="separator:afb5d57ac6b56fe83e7894e3b686c3339"><td class="memSeparator" colspan="2"> </td></tr> -</table> -<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> -<div class="textblock"><p>This class executes telegram api methods. Telegram docs: <a href="https://core.telegram.org/bots/api#available-methods">https://core.telegram.org/bots/api#available-methods</a> </p> - -<p>Definition at line <a class="el" href="_api_8h_source.html#l00058">58</a> of file <a class="el" href="_api_8h_source.html">Api.h</a>.</p> -</div><h2 class="groupheader">Constructor & Destructor Documentation</h2> -<a class="anchor" id="ac0e4615a8944c07e7db3811ee84f2a94"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">TgBot::Api::Api </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>token</em></td><td>)</td> - <td></td> - </tr> - </table> -</div><div class="memdoc"> - -</div> -</div> -<h2 class="groupheader">Member Function Documentation</h2> -<a class="anchor" id="aba162af7ac35baf2259b7c2e41b2ed52"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::addStickerToSet </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>name</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>pngSticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>emojis</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> </td> - <td class="paramname"><em>maskPosition</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to add a new sticker to a set created by the bot. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier of created sticker set owner. </td></tr> - <tr><td class="paramname">name</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set name. </td></tr> - <tr><td class="paramname">title</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set title, 1-64 characters. </td></tr> - <tr><td class="paramname">pngSticker</td><td>Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. </td></tr> - <tr><td class="paramname">emojis</td><td>One or more emoji corresponding to the sticker. </td></tr> - <tr><td class="paramname">maskPosition</td><td>Optional. A JSON-serialized object for position where the mask should be placed on faces. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="ad5ec52f74b334283d21d3d294c8e6f2d"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::addStickerToSet </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>name</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>pngSticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>emojis</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> </td> - <td class="paramname"><em>maskPosition</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to add a new sticker to a set created by the bot. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier of created sticker set owner. </td></tr> - <tr><td class="paramname">name</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set name. </td></tr> - <tr><td class="paramname">title</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set title, 1-64 characters. </td></tr> - <tr><td class="paramname">pngSticker</td><td>Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet. </td></tr> - <tr><td class="paramname">emojis</td><td>One or more emoji corresponding to the sticker. </td></tr> - <tr><td class="paramname">maskPosition</td><td>Optional. A JSON-serialized object for position where the mask should be placed on faces. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="a9f1cbc18cfd16def2bd4d4b816e87cfa"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::answerCallbackQuery </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>callbackQueryId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>text</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>showAlert</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>url</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>cacheTime</em> = <code>0</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">callbackQueryId</td><td>Unique identifier for the query to be answered </td></tr> - <tr><td class="paramname">text</td><td>Optional Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters </td></tr> - <tr><td class="paramname">showAlert</td><td>Optional If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false. </td></tr> - <tr><td class="paramname">url</td><td>Optional URL that will be opened by the user's client. If you have created a <a class="el" href="class_tg_bot_1_1_game.html" title="This object represents a game. ">Game</a> and accepted the conditions via , specify the URL that opens your game – note that this will only work if the query comes from a callback_game button </td></tr> - <tr><td class="paramname">cacheTime</td><td>Optional The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="af1191f022ce6029cc4889ceebc7189af"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::answerInlineQuery </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineQueryId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_inline_query_result.html#af567dd95c4dae7c4a895e561a97ed4c5">InlineQueryResult::Ptr</a> > & </td> - <td class="paramname"><em>results</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>cacheTime</em> = <code>300</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>isPersonal</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>nextOffset</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>switchPmText</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>switchPmParameter</em> = <code>""</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send answers to an inline query. No mode that 50 results per query are allowed. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">inlineQueryId</td><td>Unique identifier for the answered query. </td></tr> - <tr><td class="paramname">results</td><td>Array of results for the inline query. </td></tr> - <tr><td class="paramname">cacheTime</td><td>The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300. </td></tr> - <tr><td class="paramname">isPersonal</td><td>Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query. </td></tr> - <tr><td class="paramname">nextOffset</td><td>Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes. </td></tr> - <tr><td class="paramname">switchPmText</td><td>If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter </td></tr> - <tr><td class="paramname">switchPmParameter</td><td>Parameter for the start message sent to the bot when user presses the switch button </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a9b7cea0c518d27095803b1be9e769f7c"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::answerPreCheckoutQuery </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>preCheckoutQueryId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>ok</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>errorMessage</em> = <code>""</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to respond to such pre-checkout queries. </p> -<p>Once the user has confirmed their payment and shipping details, the <a class="el" href="class_tg_bot_1_1_bot.html" title="This object holds other objects specific for this bot instance. ">Bot</a> API sends the final confirmation in the form of an <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a> with the field preCheckoutQuery. Note: The <a class="el" href="class_tg_bot_1_1_bot.html" title="This object holds other objects specific for this bot instance. ">Bot</a> API must receive an answer within 10 seconds after the pre-checkout query was sent.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">preCheckoutQueryId</td><td>Unique identifier for the query to be answered </td></tr> - <tr><td class="paramname">ok</td><td>Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems. </td></tr> - <tr><td class="paramname">errorMessage</td><td>Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, True is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a2638761a2ac9a220fd6bb47185cfeff8"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::answerShippingQuery </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>shippingQueryId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>ok</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_shipping_option.html#af97bf7d55ed3bcd3090c08885f010f60">ShippingOption::Ptr</a> > & </td> - <td class="paramname"><em>shippingOptions</em> = <code>std::vector< <a class="el" href="class_tg_bot_1_1_shipping_option.html#af97bf7d55ed3bcd3090c08885f010f60">ShippingOption::Ptr</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>errorMessage</em> = <code>""</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to reply to shipping queries. </p> -<p>If you sent an invoice requesting a shipping address and the parameter isFlexible was specified, the <a class="el" href="class_tg_bot_1_1_bot.html" title="This object holds other objects specific for this bot instance. ">Bot</a> API will send an <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a> with a shipping_query field to the bot.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">shippingQueryId</td><td>Unique identifier for the query to be answered. </td></tr> - <tr><td class="paramname">ok</td><td>Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible) </td></tr> - <tr><td class="paramname">shippingOptions</td><td>Optional. Required if ok is True. A JSON-serialized array of available shipping options. </td></tr> - <tr><td class="paramname">errorMessage</td><td>Optional. Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, True is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="af67640a49edfa401ac72db694439fabb"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::createNewStickerSet </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>name</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>pngSticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>emojis</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>containsMasks</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> </td> - <td class="paramname"><em>maskPosition</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier of created sticker set owner. </td></tr> - <tr><td class="paramname">name</td><td>Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters. </td></tr> - <tr><td class="paramname">title</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set title, 1-64 characters. </td></tr> - <tr><td class="paramname">pngSticker</td><td>Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. </td></tr> - <tr><td class="paramname">emojis</td><td>One or more emoji corresponding to the sticker. </td></tr> - <tr><td class="paramname">containsMasks</td><td>Optional. Pass True, if a set of mask stickers should be created. </td></tr> - <tr><td class="paramname">maskPosition</td><td>Optional. A JSON-serialized object for position where the mask should be placed on faces. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="a94803c798828ce9efdcb19575475c642"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::createNewStickerSet </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>name</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>pngSticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>emojis</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>containsMasks</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype"><a class="el" href="class_tg_bot_1_1_mask_position.html#a37edf3eefbf231ee8ab94a29425b3fe1">MaskPosition::Ptr</a> </td> - <td class="paramname"><em>maskPosition</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier of created sticker set owner. </td></tr> - <tr><td class="paramname">name</td><td>Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters. </td></tr> - <tr><td class="paramname">title</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> set title, 1-64 characters. </td></tr> - <tr><td class="paramname">pngSticker</td><td>Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet. </td></tr> - <tr><td class="paramname">emojis</td><td>One or more emoji corresponding to the sticker. </td></tr> - <tr><td class="paramname">containsMasks</td><td>Optional. Pass True, if a set of mask stickers should be created. </td></tr> - <tr><td class="paramname">maskPosition</td><td>Optional. A JSON-serialized object for position where the mask should be placed on faces. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="a154af6a79db40c4eecc006924836e025"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::deleteChatPhoto </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to delete a chat photo. </p> -<p>Photos can't be changed for private chats.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a74f9c4536b999ae3d3e04cf7e2fc107d"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::deleteChatStickerSet </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="a6302f338a5af745533847c62e2c91018"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">void TgBot::Api::deleteMessage </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to delete messages sent by bot (or by other users if bot is admin). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">messageId</td><td>Unique identifier for the target message. </td></tr> - </table> - </dd> -</dl> - -</div> -</div> -<a class="anchor" id="a4f052f6b5912c95ca7e2a98e19a49715"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::deleteStickerPositionInSet </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>sticker</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to delete a sticker from a set created by the bot. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">stickers</td><td><a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> identifier of the sticker. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="af924cf5917fcb39f9c3df91a748d0347"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::deleteWebhook </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to remove webhook integration if you decide to switch back to getUpdates. </p> -<p>Requires no parameters.</p> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="a093648c83194f1fef00c3cf3fbec3ae4"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::string TgBot::Api::downloadFile </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>filePath</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> > & </td> - <td class="paramname"><em>args</em> = <code>std::vector< <a class="el" href="class_tg_bot_1_1_http_req_arg.html">HttpReqArg</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Downloads file from Telegram and saves it in memory. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">filePath</td><td>Telegram file path. </td></tr> - <tr><td class="paramname">args</td><td>Additional api parameters. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> contents in a string. </dd></dl> - -</div> -</div> -<a class="anchor" id="a34017cf57676c8a0255f3083f12a9d65"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::editMessageCaption </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineMessageId</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Optional Required if inline_message_id is not specified. Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">messageId</td><td>Optional Required if inline_message_id is not specified. Identifier of the sent message </td></tr> - <tr><td class="paramname">caption</td><td>Optional New caption of the message </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional Required if chat_id and message_id are not specified. Identifier of the inline message </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional A JSON-serialized object for an inline keyboard. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> object on success, otherwise nullptr </dd></dl> - -</div> -</div> -<a class="anchor" id="af8056aea6a062a5c4c629c7dc5cfe8c0"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::editMessageLiveLocation </td> - <td>(</td> - <td class="paramtype">float </td> - <td class="paramname"><em>latitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>longitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>inlineMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to edit live location messages sent by the bot or via the bot (for inline bots). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">latitude</td><td>Latitude of new location. </td></tr> - <tr><td class="paramname">longitude</td><td>Longitude of new location. </td></tr> - <tr><td class="paramname">chatId</td><td>Optional. Required if inlineMessageId is not specified. Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">messageId</td><td>Optional. Required if inlineMessageId is not specified. Identifier of the sent message. </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional. Required if chatId and messageId are not specified. Identifier of the inline message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. A JSON-serialized object for a new inline keyboard. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, if the edited message was sent by the bot, the edited <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned, otherwise nullptr is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a7c737b0c3cc0b9f3894ac51d9210fba0"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::editMessageReplyMarkup </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineMessageId</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Optional Required if inline_message_id is not specified. Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">messageId</td><td>Optional Required if inline_message_id is not specified. Identifier of the sent message </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional Required if chat_id and message_id are not specified. Identifier of the inline message </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional A JSON-serialized object for an inline keyboard. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> object on success, otherwise nullptr </dd></dl> - -</div> -</div> -<a class="anchor" id="a96e0fc377bddcff4e6daadfbe2c06114"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::editMessageText </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>text</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineMessageId</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableWebPagePreview</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to edit text and game messages sent by the bot or via the bot (for inline bots) </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">text</td><td>New text of the message </td></tr> - <tr><td class="paramname">chatId</td><td>Optional Required if inline_message_id is not specified. Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">messageId</td><td>Optional Required if inline_message_id is not specified. Identifier of the sent message </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional Required if chat_id and message_id are not specified. Identifier of the inline message </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableWebPagePreview</td><td>Optional Disables link previews for links in this message </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional A JSON-serialized object for an inline keyboard. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> object on success, otherwise nullptr </dd></dl> - -</div> -</div> -<a class="anchor" id="a6061ec1d126165709955b526b17fd2c2"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::string TgBot::Api::exportChatInviteLink </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to generate a new invite link for a chat; any previously generated link is revoked. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>The new invite link as String on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="abe7060a706003a13dfc3951cad0af9ed"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::forwardMessage </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>fromChatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to forward messages of any kind. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">fromChatId</td><td>Unique identifier for the chat where the original message was sent — <a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> or GroupChat id. </td></tr> - <tr><td class="paramname">messageId</td><td>Unique message identifier. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="ae2233d6a8b8cf51e4be08853d972ba20"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_chat.html#a9818e295b599a08b77abefb38de75e48">Chat::Ptr</a> TgBot::Api::getChat </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a <a class="el" href="class_tg_bot_1_1_chat.html" title="This object represents a Telegram Chat. ">Chat</a> object on success. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_chat.html" title="This object represents a Telegram Chat. ">Chat</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="a09af96dadde7bce75045924bc137f73e"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::vector<<a class="el" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a>> TgBot::Api::getChatAdministrators </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get a list of administrators in a chat. On success, returns an Array of <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="aa2d667d976f4c6e19f3df9473f5b0cb4"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_chat_member.html#a7c14c867a129ac28396b680c79dc495d">ChatMember::Ptr</a> TgBot::Api::getChatMember </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="add7de90c14200ebc0654f6ff94615dc4"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">int32_t TgBot::Api::getChatMembersCount </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get the number of members in a chat. Returns Int on success. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Int. </dd></dl> - -</div> -</div> -<a class="anchor" id="afd78c8ca4b91c632df03e51eb967075b"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> TgBot::Api::getFile </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>fileId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">fileId</td><td><a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> identifier to get info about </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="a6a2ce85e426e9c2242ceefc933abde68"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::vector<<a class="el" href="class_tg_bot_1_1_game_high_score.html#a25eccb9018f74176b5c0baf25db721f4">GameHighScore::Ptr</a>> TgBot::Api::getGameHighScores </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>score</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>force</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableEditMessage</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineMessageId</em> = <code>""</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get data for high score tables. </p> -<p>Will return the score of the specified user and several of his neighbors in a game.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier. </td></tr> - <tr><td class="paramname">chatId</td><td>Optional. Required if inlineMessageId is not specified. Unique identifier for the target chat </td></tr> - <tr><td class="paramname">messageId</td><td>Optional. Required if inlineMessageId is not specified. Identifier of the sent message </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional. Required if chatId and messageId are not specified. Identifier of the inline message </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, returns an Array of <a class="el" href="class_tg_bot_1_1_game_high_score.html" title="This object represents one row of the high scores table for a game. ">GameHighScore</a> objects. </dd></dl> - -</div> -</div> -<a class="anchor" id="abf3e04fb3ea66e0d40c40cef3aa0d5c1"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_user.html#ae6ea24aef677abaaf0fd7d60adf5be79">User::Ptr</a> TgBot::Api::getMe </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>A simple method for testing your bot's auth token. </p> -<dl class="section return"><dt>Returns</dt><dd>Basic information about the bot in form of a <a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="a89bb062bdba276f1faa2b0d222718cb1"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_sticker_set.html#ad3c58f08ddacdb946507cd96a3d54421">StickerSet::Ptr</a> TgBot::Api::getStickerSet </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>name</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get a sticker set. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Name of the sticker set. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, a <a class="el" href="class_tg_bot_1_1_sticker_set.html" title="This object represents a sticker set. ">StickerSet</a> object is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="aa43007edecb1c3a8438e3217fcfbbc94"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::vector<<a class="el" href="class_tg_bot_1_1_update.html#abace63cf3605fe7a480a3bb839a672a8">Update::Ptr</a>> TgBot::Api::getUpdates </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>offset</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>limit</em> = <code>100</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>timeout</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const StringArrayPtr & </td> - <td class="paramname"><em>allowedUpdates</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to receive incoming updates using long polling. </p> -<p>This method will not work if an outgoing webhook is set up. In order to avoid getting duplicate updates, recalculate offset after each server response.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">offset</td><td>Optional. Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. </td></tr> - <tr><td class="paramname">limit</td><td>Optional. Limits the number of updates to be retrieved. Values between 1—100 are accepted. Defaults to 100. </td></tr> - <tr><td class="paramname">timeout</td><td>Optional. Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. </td></tr> - <tr><td class="paramname">allowed_updates</td><td>Optional. List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these types. See <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a> for a complete list of available update types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous setting will be used. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>An Array of <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a> objects </dd></dl> - -</div> -</div> -<a class="anchor" id="a2ec0062e6fc92767298b663c6e354e69"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_user_profile_photos.html#a734352c5b115ea29e639f01462187d55">UserProfilePhotos::Ptr</a> TgBot::Api::getUserProfilePhotos </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>offset</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>limit</em> = <code>100</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get a list of profile pictures for a user. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user. </td></tr> - <tr><td class="paramname">offset</td><td>Optional. Sequential number of the first photo to be returned. By default, all photos are returned. </td></tr> - <tr><td class="paramname">limit</td><td>Optional. Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_tg_bot_1_1_user_profile_photos.html" title="This object represent a user's profile pictures. ">UserProfilePhotos</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="a27558973e48073b292ad49e613c7da8e"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_webhook_info.html#a2280093713d1304207d8bba2204648d6">WebhookInfo::Ptr</a> TgBot::Api::getWebhookInfo </td> - <td>(</td> - <td class="paramname"></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get current webhook status. </p> -<p>Requires no parameters. If the bot is using getUpdates, will return an object with the url field empty.</p> -<dl class="section return"><dt>Returns</dt><dd>On success, returns a <a class="el" href="class_tg_bot_1_1_webhook_info.html" title="Contains information about the current status of a webhook. ">WebhookInfo</a> object. </dd></dl> - -</div> -</div> -<a class="anchor" id="af0b6c399430facc369c5592aa1ecf161"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::kickChatMember </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">uint64_t </td> - <td class="paramname"><em>untilDate</em> = <code>0</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to kick a user from a group or a supergroup. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target group. </td></tr> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user. </td></tr> - <tr><td class="paramname">untilDate</td><td>Optional. Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a40a68303a485e8dc778af103fefa76a4"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::leaveChat </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method for your bot to leave a group, supergroup or channel. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a79fe90a632c8f2579ec8e371a42cb607"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::pinChatMessage </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to pin a message in a supergroup or a channel. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">messageId</td><td>Identifier of a message to pin. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Pass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a1938236a7e5fb80b60061d2edcbcbabc"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::promoteChatMember </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canChangeInfo</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canPostMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canEditMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canDeleteMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canInviteUsers</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canPinMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canPromoteMembers</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to promote or demote a user in a supergroup or a channel. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channal. </td></tr> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user. </td></tr> - <tr><td class="paramname">canChangeInfo</td><td>Optional. Pass True, if the administrator can change chat title, photo and other settings. </td></tr> - <tr><td class="paramname">canPostMessages</td><td>Optional. Pass True, if the administrator can create channel posts, channels only. </td></tr> - <tr><td class="paramname">canEditMessages</td><td>Optional. Pass True, if the administrator can edit messages of other users and can pin messages, channels only. </td></tr> - <tr><td class="paramname">canDeleteMessages</td><td>Optional. Pass True, if the administrator can delete messages of other users. </td></tr> - <tr><td class="paramname">canInviteUsers</td><td>Optional. Pass True, if the administrator can invite new users to the chat. </td></tr> - <tr><td class="paramname">canRestrictMembers</td><td>Optional. Pass True, if the administrator can restrict, ban or unban chat members. </td></tr> - <tr><td class="paramname">canPinMessages</td><td>Optional. Pass True, if the administrator can pin messages, supergroups only. </td></tr> - <tr><td class="paramname">canPromoteMembers</td><td>Optional. Pass True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him). </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a87abb412b48b905e8cea6262c410363b"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::restrictChatMember </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">uint64_t </td> - <td class="paramname"><em>untilDate</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canSendMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canSendMediaMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canSendOtherMessages</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>canAddWebPagePreviews</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to restrict a user in a supergroup. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup. </td></tr> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user. </td></tr> - <tr><td class="paramname">untilDate</td><td>Optional. Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever. </td></tr> - <tr><td class="paramname">canSendMessages</td><td>Optional. Pass True, if the user can send text messages, contacts, locations and venues. </td></tr> - <tr><td class="paramname">canSendMediaMessages</td><td>Optional. Pass True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages. </td></tr> - <tr><td class="paramname">canSendOtherMessages</td><td>Optional. Pass True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages. </td></tr> - <tr><td class="paramname">canAddWebPagePreviews</td><td>Optional. Pass True, if the user may add web page previews to their messages, implies can_send_media_messages. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="aa0c9cd2ca4282f883b9b340de039dae6"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendAudio </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>audio</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>performer</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">audio</td><td><a class="el" href="class_tg_bot_1_1_audio.html" title="This object represents an audio file (voice note). ">Audio</a> to send. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_audio.html" title="This object represents an audio file (voice note). ">Audio</a> caption, 0-200 characters </td></tr> - <tr><td class="paramname">duration</td><td>Duration of sent audio in seconds. </td></tr> - <tr><td class="paramname">performer</td><td>Performer </td></tr> - <tr><td class="paramname">title</td><td>Track name </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a0dfb5ae8d40232b5e83dfbc41b0aa2e2"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendAudio </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>audioId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>performer</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">audio</td><td>Id of the audio that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_audio.html" title="This object represents an audio file (voice note). ">Audio</a> caption, 0-200 characters </td></tr> - <tr><td class="paramname">duration</td><td>Duration of sent audio in seconds. </td></tr> - <tr><td class="paramname">performer</td><td>Performer </td></tr> - <tr><td class="paramname">title</td><td>Track name </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a1a901654ddad96464a5bff3210932fc4"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">void TgBot::Api::sendChatAction </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>action</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). </p> -<p>Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">action</td><td>Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_audio or upload_audio for audio files, upload_document for general files, find_location for location data. </td></tr> - </table> - </dd> -</dl> - -</div> -</div> -<a class="anchor" id="a48415173f58fe4c4cc8ec7cc5c836cb7"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendContact </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>phoneNumber</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>firstName</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>lastName</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send phone contacts. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">phoneNumber</td><td><a class="el" href="class_tg_bot_1_1_contact.html" title="This object represents a phone contact. ">Contact</a>'s phone number. </td></tr> - <tr><td class="paramname">firstName</td><td><a class="el" href="class_tg_bot_1_1_contact.html" title="This object represents a phone contact. ">Contact</a>'s first name. </td></tr> - <tr><td class="paramname">lastName</td><td><a class="el" href="class_tg_bot_1_1_contact.html" title="This object represents a phone contact. ">Contact</a>'s last name. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="ad9985830c9232994f87fa0d7d31a3d8a"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendDocument </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>document</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send general files. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">document</td><td><a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a> to send. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a> caption (may also be used when resending documents by file_id), 0-200 characters </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="afc838be17df669d600260c1ca299a826"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendDocument </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>documentId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send general files. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">document</td><td>Id of the document that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a> caption (may also be used when resending documents by file_id), 0-200 characters </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a1f57d0622b6dc52d64f590e4468c20f8"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendGame </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>gameShortName</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send a game. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">gameShortName</td><td>Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. A JSON-serialized object for an inline keyboard. If empty, one ‘Play game_title’ button will be shown. If not empty, the first button must launch the game. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a7ce5b3735e59a6cc7fc75badabb05371"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendInvoice </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>description</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>payload</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>providerToken</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>startParameter</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>currency</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_labeled_price.html#a1d53775f4034427a2dfaae9ef176796c">LabeledPrice::Ptr</a> > & </td> - <td class="paramname"><em>prices</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>providerData</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>photoUrl</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>photoSize</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>photoWidth</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>photoHeight</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>needName</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>needPhoneNumber</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>needEmail</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>needShippingAddress</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>sendPhoneNumberToProvider</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>sendEmailToProvider</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>isFlexible</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send invoices. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target private chat. </td></tr> - <tr><td class="paramname">title</td><td>Product name, 1-32 characters. </td></tr> - <tr><td class="paramname">description</td><td>Product description, 1-255 characters. </td></tr> - <tr><td class="paramname">payload</td><td>Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. </td></tr> - <tr><td class="paramname">providerToken</td><td>Payments provider token, obtained via Botfather. </td></tr> - <tr><td class="paramname">startParameter</td><td>Unique deep-linking parameter that can be used to generate this invoice when used as a start parameter. </td></tr> - <tr><td class="paramname">currency</td><td>Three-letter ISO 4217 currency code. </td></tr> - <tr><td class="paramname">prices</td><td>Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) </td></tr> - <tr><td class="paramname">providerData</td><td>Optional. JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider. </td></tr> - <tr><td class="paramname">photoUrl</td><td>Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for. </td></tr> - <tr><td class="paramname">photoSize</td><td>Optional. Photo size </td></tr> - <tr><td class="paramname">photoWidth</td><td>Optional. Photo width </td></tr> - <tr><td class="paramname">photoHeight</td><td>Optional. Photo height </td></tr> - <tr><td class="paramname">needName</td><td>Optional. Pass True, if you require the user's full name to complete the order. </td></tr> - <tr><td class="paramname">needPhoneNumber</td><td>Optional. Pass True, if you require the user's phone number to complete the order. </td></tr> - <tr><td class="paramname">needEmail</td><td>Optional. Pass True, if you require the user's email address to complete the order. </td></tr> - <tr><td class="paramname">needShippingAddress</td><td>Optional. Pass True, if you require the user's shipping address to complete the order. </td></tr> - <tr><td class="paramname">sendPhoneNumberToProvider</td><td>Optional. Pass True, if user's phone number should be sent to provider. </td></tr> - <tr><td class="paramname">sendEmailToProvider</td><td>Optional. Pass True, if user's email address should be sent to provider </td></tr> - <tr><td class="paramname">isFlexible</td><td>Optional. Pass True, if the final price depends on the shipping method. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silently. Users will receive a notification with no sound. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="afa6fd752ac02553795bfef4290f9fb66"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendLocation </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>latitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>longitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">uint32_t </td> - <td class="paramname"><em>livePeriod</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send point on the map. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">latitude</td><td>Latitude of location. </td></tr> - <tr><td class="paramname">longitude</td><td>Longitude of location. </td></tr> - <tr><td class="paramname">livePeriod</td><td>Optional. Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400). </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a2028955491cb7057f5150634583e4ac3"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">std::vector<<a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a>> TgBot::Api::sendMediaGroup </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::vector< <a class="el" href="class_tg_bot_1_1_input_media.html#abdc38ae21d5213ead3720db082ef1f9c">InputMedia::Ptr</a> > & </td> - <td class="paramname"><em>media</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send a group of photos or videos as an album. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">media</td><td>A JSON-serialized array describing photos and videos to be sent, must include 2–10 items. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the messages silently. Users will receive a notification with no sound. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the messages are a reply, ID of the original message. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, an array of the sent Messages is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a06a2a2462af86f236e6524d9dc4c3e0a"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendMessage </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>text</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableWebPagePreview</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send text messages. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">text</td><td>Text of the message to be sent. </td></tr> - <tr><td class="paramname">disableWebPagePreview</td><td>Optional. Disables link previews for links in this message. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="ac9731240a7670422209b62f84d8d3b88"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendPhoto </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>photo</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send photos. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">photo</td><td>Photo to send. </td></tr> - <tr><td class="paramname">caption</td><td>Optional. Photo caption. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="aaeecfd8c04932ae71b2bba35cee828c0"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendPhoto </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>photoId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send photos. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">photo</td><td>Photo to send. Id of the photo that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">caption</td><td>Optional. Photo caption. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a59567254a0b6b1650a2d947a777d7710"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendSticker </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>sticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send .webp stickers. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">sticker</td><td><a class="el" href="class_tg_bot_1_1_sticker.html" title="This object represents a general file (as opposed to photos and audio files). ">Sticker</a> to send. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a2cead806d48ab02c6cd31bee06916a7b"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendSticker </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>stickerId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send .webp stickers. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">stickerId</td><td>Id of the sticker that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="afbd6a5c72f53341ccbd71033d45aac4a"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVenue </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>latitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">float </td> - <td class="paramname"><em>longitude</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>address</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>foursquareId</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send information about a venue. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">latitude</td><td>Latitude of location. </td></tr> - <tr><td class="paramname">longitude</td><td>Longitude of location. </td></tr> - <tr><td class="paramname">title</td><td>Name of the venue. </td></tr> - <tr><td class="paramname">address</td><td>Address of the venue. </td></tr> - <tr><td class="paramname">foursquare_id</td><td>Foursquare identifier of the venue. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="acb86126bb7bc17af73350f09987b4e50"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVideo </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>video</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>supportsStreaming</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>width</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>height</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">video</td><td><a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> to send. </td></tr> - <tr><td class="paramname">supportsStreaming</td><td>Optional. Pass True, if the uploaded video is suitable for streaming. </td></tr> - <tr><td class="paramname">duration</td><td>Optional. Duration of sent video in seconds </td></tr> - <tr><td class="paramname">width</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> width </td></tr> - <tr><td class="paramname">height</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> height </td></tr> - <tr><td class="paramname">caption</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> caption (may also be used when resending videos by file_id), 0-200 characters </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. An object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a9c23f65bd4fca613300e449a5d057722"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVideo </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>videoId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>supportsStreaming</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>width</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>height</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as <a class="el" href="class_tg_bot_1_1_document.html" title="This object represents a general file (as opposed to photos and audio files). ">Document</a>). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">videoId</td><td>Id of the video that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">supportsStreaming</td><td>Optional. Pass True, if the uploaded video is suitable for streaming. </td></tr> - <tr><td class="paramname">duration</td><td>Optional. Duration of sent video in seconds </td></tr> - <tr><td class="paramname">width</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> width </td></tr> - <tr><td class="paramname">height</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> height </td></tr> - <tr><td class="paramname">caption</td><td>Optional. <a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> caption (may also be used when resending videos by file_id), 0-200 characters </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="aafc9eac23e52cf9f0831b0b47386f44d"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVideoNote </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>videoNote</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>length</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code><a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send video messages. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">videoNote</td><td><a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> note to send. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Sends the message silently. Users will receive a notification with no sound. </td></tr> - <tr><td class="paramname">duration</td><td>Duration of sent video in seconds. </td></tr> - <tr><td class="paramname">length</td><td><a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> width and height. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Additional interface options. A object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a00934efcb21f69e71ff6ab0eca9617a5"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVideoNote </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>videoNote</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>length</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code><a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a>()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send video messages. On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">videoNote</td><td>Id of the video note that exists on the Telegram servers. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Sends the message silently. Users will receive a notification with no sound. </td></tr> - <tr><td class="paramname">duration</td><td>Duration of sent video in seconds. </td></tr> - <tr><td class="paramname">length</td><td><a class="el" href="class_tg_bot_1_1_video.html" title="This object represents a video file. ">Video</a> width and height. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Additional interface options. A object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a6664f4fa87a3648afc5a9f3023a7887d"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVoice </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>voice</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">voice</td><td><a class="el" href="class_tg_bot_1_1_audio.html" title="This object represents an audio file (voice note). ">Audio</a> file to send. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_voice.html" title="This object represents a voice note. ">Voice</a> message caption, 0-200 characters </td></tr> - <tr><td class="paramname">duration</td><td>Duration of send audio in seconds. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="addfd50730c548e33d61f7ee81eb8c6ac"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::sendVoice </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>voiceId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>caption</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int </td> - <td class="paramname"><em>duration</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>replyToMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_generic_reply.html#aa7bb5f2c5484cb791e1c60c346bbb06f">GenericReply::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_generic_reply.html">GenericReply</a> >()</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>parseMode</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableNotification</em> = <code>false</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">voiceId</td><td>Id of the voice that is already on the Telegram servers. </td></tr> - <tr><td class="paramname">caption</td><td><a class="el" href="class_tg_bot_1_1_voice.html" title="This object represents a voice note. ">Voice</a> message caption, 0-200 characters </td></tr> - <tr><td class="paramname">duration</td><td>Duration of send audio in seconds. </td></tr> - <tr><td class="paramname">replyToMessageId</td><td>Optional. If the message is a reply, ID of the original message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. Additional interface options. A object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. </td></tr> - <tr><td class="paramname">parseMode</td><td>Optional. Set it to "Markdown" or "HTML" if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. </td></tr> - <tr><td class="paramname">disableNotification</td><td>Optional. Sends the message silenty. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, the sent message is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a781b82abe744bc56d9e7c3e51cd54c53"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::setChatDescription </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>description</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to change the description of a supergroup or a channel. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">description</td><td>New chat description, 1-255 characters. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a53c636b18acde8eacdb26201808ad217"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::setChatPhoto </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>photo</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to set a new profile photo for the chat. </p> -<p>Photos can't be changed for private chats.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">photo</td><td>New chat photo. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="ac9d05feddc2844907335cf07ad5d9a51"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::setChatStickerSet </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>stickerSetName</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to get information about a member of a chat. Returns a <a class="el" href="class_tg_bot_1_1_chat_member.html" title="This object contains information about one member of the chat. ">ChatMember</a> object on success. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat of the target supergroup or channel. </td></tr> - <tr><td class="paramname">stickerSetName</td><td>Name of the sticker set to be set as the group sticker set. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="aa680466fe9910e2c923717519bb90223"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::setChatTitle </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>title</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to change the title of a chat. </p> -<p>Titles can't be changed for private chats.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - <tr><td class="paramname">title</td><td>New chat title, 1-255 characters. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="aa2b32e8b322719b0431b3d77b18fb09a"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::setGameScore </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>score</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>force</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">bool </td> - <td class="paramname"><em>disableEditMessage</em> = <code>false</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>inlineMessageId</em> = <code>""</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to set the score of the specified user in a game. </p> -<p>Returns an error, if the new score is not greater than the user's current score in the chat and force is False.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier. </td></tr> - <tr><td class="paramname">score</td><td>New score, must be non-negative. </td></tr> - <tr><td class="paramname">force</td><td>Optional. Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters. </td></tr> - <tr><td class="paramname">disableEditMessage</td><td>Optional. Pass True, if the game message should not be automatically edited to include the current scoreboard. </td></tr> - <tr><td class="paramname">chatId</td><td>Optional. Required if inlineMessageId is not specified. Unique identifier for the target chat </td></tr> - <tr><td class="paramname">messageId</td><td>Optional. Required if inlineMessageId is not specified. Identifier of the sent message </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional. Required if chatId and messageId are not specified. Identifier of the inline message </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, if the message was sent by the bot, returns the edited <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a>, otherwise returns nullptr. </dd></dl> - -</div> -</div> -<a class="anchor" id="a6394ad645519b4faed3f4f64273d3ffd"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::setStickerPositionInSet </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>sticker</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">uint32_t </td> - <td class="paramname"><em>position</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to move a sticker in a set created by the bot to a specific position. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">stickers</td><td><a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> identifier of the sticker. </td></tr> - <tr><td class="paramname">position</td><td>New sticker position in the set, zero-based. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns True on success. </dd></dl> - -</div> -</div> -<a class="anchor" id="ace37f034356c0afd60c03799bf263f71"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">void TgBot::Api::setWebhook </td> - <td>(</td> - <td class="paramtype">const std::string & </td> - <td class="paramname"><em>url</em> = <code>""</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>certificate</em> = <code>nullptr</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>maxConnection</em> = <code>40</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const StringArrayPtr & </td> - <td class="paramname"><em>allowedUpdates</em> = <code>nullptr</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized <a class="el" href="class_tg_bot_1_1_update.html" title="This object represents an incoming update. ">Update</a>. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. </p> -<p>If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. www.example.com/<token>. Since nobody else knows your bot‘s token, you can be pretty sure it’s us. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up. We currently do not support self-signed certificates. Ports currently supported for Webhooks: 443, 80, 88, 8443.</p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">url</td><td>Optional. HTTPS url to send updates to. Use an empty string to remove webhook integration. </td></tr> - </table> - </dd> -</dl> - -</div> -</div> -<a class="anchor" id="ab5fc9e83dee40c6040fe1c56a882c905"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_message.html#a3805a5dc013c6ab23ac5efc91282c11d">Message::Ptr</a> TgBot::Api::stopMessageLiveLocation </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>messageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>inlineMessageId</em> = <code>0</code>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html#a596873291582fb23cfbe6b62e20df8e7">InlineKeyboardMarkup::Ptr</a> </td> - <td class="paramname"><em>replyMarkup</em> = <code>std::make_shared< <a class="el" href="class_tg_bot_1_1_inline_keyboard_markup.html">InlineKeyboardMarkup</a> >()</code> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to edit live location messages sent by the bot or via the bot (for inline bots). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Optional. Required if inlineMessageId is not specified. Unique identifier for the target chat of the target channel. </td></tr> - <tr><td class="paramname">messageId</td><td>Optional. Required if inlineMessageId is not specified. Identifier of the sent message. </td></tr> - <tr><td class="paramname">inlineMessageId</td><td>Optional. Required if chatId and messageId are not specified. Identifier of the inline message. </td></tr> - <tr><td class="paramname">replyMarkup</td><td>Optional. A JSON-serialized object for a new inline keyboard. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>On success, if the edited message was sent by the bot, the edited <a class="el" href="class_tg_bot_1_1_message.html" title="This object represents a message. ">Message</a> is returned, otherwise nullptr is returned. </dd></dl> - -</div> -</div> -<a class="anchor" id="a72fbbf1282eb25dc158db9ab2a39cacb"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::unbanChatMember </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to unban a previously kicked user in a supergroup. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target group. </td></tr> - <tr><td class="paramname">userId</td><td>Unique identifier of the target user. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="aa0e2429129522a75401bf4f9a034fb21"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname">bool TgBot::Api::unpinChatMessage </td> - <td>(</td> - <td class="paramtype">int64_t </td> - <td class="paramname"><em>chatId</em></td><td>)</td> - <td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to unpin a message in a supergroup or a channel. </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">chatId</td><td>Unique identifier for the target chat. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>True on success </dd></dl> - -</div> -</div> -<a class="anchor" id="a910cdf6916c4526e8c3d449bebb55cf1"></a> -<div class="memitem"> -<div class="memproto"> - <table class="memname"> - <tr> - <td class="memname"><a class="el" href="class_tg_bot_1_1_file.html#ac47e9c73b9d762eef2322c0932c5a934">File::Ptr</a> TgBot::Api::uploadStickerFile </td> - <td>(</td> - <td class="paramtype">int32_t </td> - <td class="paramname"><em>userId</em>, </td> - </tr> - <tr> - <td class="paramkey"></td> - <td></td> - <td class="paramtype">const <a class="el" href="class_tg_bot_1_1_input_file.html#a9b1b7a8f913d9c4d4a389d9a4353d94f">InputFile::Ptr</a> </td> - <td class="paramname"><em>pngSticker</em> </td> - </tr> - <tr> - <td></td> - <td>)</td> - <td></td><td> const</td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). </p> -<dl class="params"><dt>Parameters</dt><dd> - <table class="params"> - <tr><td class="paramname">userId</td><td><a class="el" href="class_tg_bot_1_1_user.html" title="This object represents a Telegram user or bot. ">User</a> identifier of sticker file owner. </td></tr> - <tr><td class="paramname">pngSticker</td><td>Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. </td></tr> - </table> - </dd> -</dl> -<dl class="section return"><dt>Returns</dt><dd>Returns the uploaded <a class="el" href="class_tg_bot_1_1_file.html" title="This object represents a file ready to be downloaded. ">File</a> on success. </dd></dl> - -</div> -</div> -<h2 class="groupheader">Friends And Related Function Documentation</h2> -<a class="anchor" id="afb5d57ac6b56fe83e7894e3b686c3339"></a> -<div class="memitem"> -<div class="memproto"> -<table class="mlabels"> - <tr> - <td class="mlabels-left"> - <table class="memname"> - <tr> - <td class="memname">friend class <a class="el" href="class_tg_bot_1_1_bot.html">Bot</a></td> - </tr> - </table> - </td> - <td class="mlabels-right"> -<span class="mlabels"><span class="mlabel">friend</span></span> </td> - </tr> -</table> -</div><div class="memdoc"> - -<p>Definition at line <a class="el" href="_api_8h_source.html#l00062">62</a> of file <a class="el" href="_api_8h_source.html">Api.h</a>.</p> - -</div> -</div> -<hr/>The documentation for this class was generated from the following file:<ul> -<li>include/tgbot/<a class="el" href="_api_8h_source.html">Api.h</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="namespace_tg_bot.html">TgBot</a></li><li class="navelem"><a class="el" href="class_tg_bot_1_1_api.html">Api</a></li> - <li class="footer">Generated on Fri Jun 22 2018 22:14:16 for tgbot-cpp by - <a href="http://www.doxygen.org/index.html"> - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> - </ul> -</div> -</body> -</html> |