vvlad1973-telegram-framework
Version:
Current version: *7.9.5*
3,480 lines (896 loc) • 57.1 kB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: InlineKeyboardMarkup</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: InlineKeyboardMarkup</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>
<span class="ancestors"><a href="module-inline_keyboard_markup.html">inline_keyboard_markup</a>.</span>InlineKeyboardMarkup<span class="signature">()</span><span class="type-signature"></span></h2>
<div class="class-description">Implements structure for operations with Telegram bot's commands.</div>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h4 class="name" id="InlineKeyboardMarkup"><span class="type-signature"></span>new InlineKeyboardMarkup<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
This object represents an inline keyboard that appears right
next to the message it belongs to
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line65">line 65</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<h4 class="name" id="inline_keyboard"><span class="type-signature"></span>inline_keyboard<span class="type-signature"></span></h4>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
<span class="param-type">Array.<Array.<<a href="module-inline_keyboard_markup.html#.InlineKeyboardButton">module:inline_keyboard_markup.InlineKeyboardButton</a>>></span>
</td>
<td class="description last">Array of
button rows, each represented by an Array of InlineKeyboardButton
objects</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line72">line 72</a>
</li></ul></dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="addCallbackGameButton"><span class="type-signature"></span>addCallbackGameButton<span class="signature">(text)</span><span class="type-signature"></span></h4>
<div class="description">
Add a callback game button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">Text label for the button</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line275">line 275</a>
</li></ul></dd>
</dl>
<h4 class="name" id="addPayButton"><span class="type-signature"></span>addPayButton<span class="signature">(text)</span><span class="type-signature"></span></h4>
<div class="description">
Add a pay button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">Text label for the button</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line256">line 256</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendLoginUrlButton"><span class="type-signature"></span>appendLoginUrlButton<span class="signature">(text, url, forwardText<span class="signature-attributes">opt</span>, botUsername<span class="signature-attributes">opt</span>, requestWriteAccess<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append a LoginUrl button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">An HTTP URL to be opened with user authorization
data added to the query string when the button is pressed. If the user
refuses to provide authorization data, the original URL without
information about the user will be opened. The data added is the same
as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the
authentication and the integrity of the data as described in Checking
authorization</td>
</tr>
<tr>
<td class="name"><code>forwardText</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">New text of the button in forwarded
messages</td>
</tr>
<tr>
<td class="name"><code>botUsername</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">Username of a bot, which will be used
for user authorization. See Setting up a bot for more details. If not
specified, the current bot's username will be assumed. The url's
domain must be the same as the domain linked with the bot. See Linking
your domain to the bot for more details</td>
</tr>
<tr>
<td class="name"><code>requestWriteAccess</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
false
</td>
<td class="description last">Pass True to request the
permission for your bot to send messages to the user</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">Row number to append button (0-based). If
not specified, the button will append to the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line508">line 508</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendRows"><span class="type-signature"></span>appendRows<span class="signature">(number<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append one or more rows to the keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>number</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
1
</td>
<td class="description last">Number of rows to append. If not specified,
wlll append one row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line84">line 84</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendSwitchInlineQueryButton"><span class="type-signature"></span>appendSwitchInlineQueryButton<span class="signature">(text, switchInlineQuery<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append a SwitchInlineQuery button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>switchInlineQuery</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
""
</td>
<td class="description last">If set, pressing the button will
prompt the user to select one of their chats, open that chat and
insert the bot's username and the specified inline query in the
input field. Can be empty, in which case just the bot's username
will be inserted</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">Row number to append button (0-based). If
not specified, the button will append to the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line336">line 336</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendSwitchInlineQueryCurrentChatButton"><span class="type-signature"></span>appendSwitchInlineQueryCurrentChatButton<span class="signature">(text, switchInlineQueryCurrentChat<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append a SwitchInlineQueryCurrentChat button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>switchInlineQueryCurrentChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
""
</td>
<td class="description last">If set, pressing
the button will insert the bot's username and the specified inline
query in the current chat's input field. Can be empty, in which
case only the bot's username will be inserted.
This offers a quick way for the user to open your bot in inline
mode in the same chat – good for selecting something from multiple
options</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">Row number to append button (0-based). If
not specified, the button will append to the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line408">line 408</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendTextButton"><span class="type-signature"></span>appendTextButton<span class="signature">(text, callbackData, row<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append a text button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>callbackData</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last">Data to be sent in a callback query to
the bot when button is pressed, 1-64 bytes</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last">Row number to append button (0-based). If
not specified, the button will append to the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line182">line 182</a>
</li></ul></dd>
</dl>
<h4 class="name" id="appendUrlButton"><span class="type-signature"></span>appendUrlButton<span class="signature">(text, url, row<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Append an url button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last">HTTP or tg:// url to be opened when the button is
pressed. Links tg://user?id=<user_id> can be used to mention a user
by their ID without using a username, if this is allowed by their
privacy settings</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last">Row number to append button (0-based). If
not specified, the button will append to the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line237">line 237</a>
</li></ul></dd>
</dl>
<h4 class="name" id="deleteButton"><span class="type-signature"></span>deleteButton<span class="signature">(row<span class="signature-attributes">opt</span>, column<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Remove a button from a specific row
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last">Number of row of button to delete (0-based).
If not specified, will delete a button from the last row</td>
</tr>
<tr>
<td class="name"><code>column</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last">Number of column of button to delete
(0-based). If not specified, will delete the last button from the
row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line129">line 129</a>
</li></ul></dd>
</dl>
<h4 class="name" id="deleteRow"><span class="type-signature"></span>deleteRow<span class="signature">(index<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Delete a row from the keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last">Index of row to delete (0-based). If not
specified, will delete the last row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line110">line 110</a>
</li></ul></dd>
</dl>
<h4 class="name" id="insertLoginUrlButton"><span class="type-signature"></span>insertLoginUrlButton<span class="signature">(text, url, forwardText<span class="signature-attributes">opt</span>, botUsername<span class="signature-attributes">opt</span>, requestWriteAccess<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>, column<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Insert a LoginUrl button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">An HTTP URL to be opened with user authorization
data added to the query string when the button is pressed. If the user
refuses to provide authorization data, the original URL without
information about the user will be opened. The data added is the same
as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the
authentication and the integrity of the data as described in Checking
authorization</td>
</tr>
<tr>
<td class="name"><code>forwardText</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">New text of the button in forwarded
messages</td>
</tr>
<tr>
<td class="name"><code>botUsername</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
</td>
<td class="description last">Username of a bot, which will be used
for user authorization. See Setting up a bot for more details. If not
specified, the current bot's username will be assumed. The url's
domain must be the same as the domain linked with the bot. See Linking
your domain to the bot for more details</td>
</tr>
<tr>
<td class="name"><code>requestWriteAccess</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
false
</td>
<td class="description last">Pass True to request the
permission for your bot to send messages to the user</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Row number to insert button (0-based). If
not specified, the button will insert to the last row</td>
</tr>
<tr>
<td class="name"><code>column</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Number of column of button to insert
(0-based). If not specified, the button will insert to the first
position of the row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line456">line 456</a>
</li></ul></dd>
</dl>
<h4 class="name" id="insertRows"><span class="type-signature"></span>insertRows<span class="signature">(index<span class="signature-attributes">opt</span>, number<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Insert one or more rows to the keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Number of position to insert rows (0-based).
If not specified, rows will insert at the first position</td>
</tr>
<tr>
<td class="name"><code>number</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
1
</td>
<td class="description last">Number of rows to append. If not specified,
wlll insert one row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line98">line 98</a>
</li></ul></dd>
</dl>
<h4 class="name" id="insertSwitchInlineQueryButton"><span class="type-signature"></span>insertSwitchInlineQueryButton<span class="signature">(text, switchInlineQuery<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>, column<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Insert a SwitchInlineQuery button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>switchInlineQuery</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
""
</td>
<td class="description last">If set, pressing the button will
prompt the user to select one of their chats, open that chat and
insert the bot's username and the specified inline query in the
input field. Can be empty, in which case just the bot's username
will be inserted</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Row number to insert button (0-based). If
not specified, the button will insert to the last row</td>
</tr>
<tr>
<td class="name"><code>column</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Number of column of button to insert
(0-based). If not specified, the button will insert to the first
position of the row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line304">line 304</a>
</li></ul></dd>
</dl>
<h4 class="name" id="insertSwitchInlineQueryCurrentChatButton"><span class="type-signature"></span>insertSwitchInlineQueryCurrentChatButton<span class="signature">(text, switchInlineQueryCurrentChat<span class="signature-attributes">opt</span>, row<span class="signature-attributes">opt</span>, column<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Insert a SwitchInlineQueryCurrentChat button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>switchInlineQueryCurrentChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
""
</td>
<td class="description last">If set, pressing
the button will insert the bot's username and the specified inline
query in the current chat's input field. Can be empty, in which
case only the bot's username will be inserted.
This offers a quick way for the user to open your bot in inline
mode in the same chat – good for selecting something from multiple
options</td>
</tr>
<tr>
<td class="name"><code>row</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Row number to insert button (0-based). If
not specified, the button will insert to the last row</td>
</tr>
<tr>
<td class="name"><code>column</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="default">
0
</td>
<td class="description last">Number of column of button to insert
(0-based). If not specified, the button will insert to the first
position of the row</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="inline_keyboard_markup.js.html">inline_keyboard_markup.js</a>, <a href="inline_keyboard_markup.js.html#line374">line 374</a>
</li></ul></dd>
</dl>
<h4 class="name" id="insertTextButton"><span class="type-signature"></span>insertTextButton<span class="signature">(text, callbackData, row<span class="signature-attributes">opt</span>, column<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
<div class="description">
Insert a text button to inline keyboard
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Text label for the button</td>
</tr>
<tr>
<td class="name"><code>callbackData</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last">Data to be sent in a callback query to
the bot when button is pressed, 1-64 bytes</td>
</tr>
<tr>