You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* See <a href="https://core.telegram.org/bots/api#getmydefaultadministratorrights">getMyDefaultAdministratorRights</a> for the input values
@@ -735,7 +735,7 @@ public function stopPoll(array $content)
735
735
/// Use this method to download a file
736
736
737
737
/**
738
-
* Use this method to to download a file from the Telegram servers.
738
+
* Use this method to download a file from the Telegram servers.
739
739
* \param $telegram_file_path String File path on Telegram servers
740
740
* \param $local_file_path String File path where save the file.
741
741
*/
@@ -755,9 +755,9 @@ public function downloadFile($telegram_file_path, $local_file_path)
755
755
/// Set a WebHook for the bot
756
756
757
757
/**
758
-
* 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 Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts.
758
+
* Use this method to specify an 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 Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts.
759
759
*
760
-
* 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. https://www.example.com/<token>. Since nobody else knows your bot‘s token, you can be pretty sure it’s us.
760
+
* 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. https://www.example.com/<token>. Since nobody else knows your bot token, you can be pretty sure it's us.
761
761
* \param $url String HTTPS url to send updates to. Use an empty string to remove webhook integration
762
762
* \param $certificate InputFile Upload your public key certificate so that the root certificate in use can be checked
763
763
* \return the JSON Telegram's reply.
@@ -786,8 +786,8 @@ public function deleteWebhook()
786
786
787
787
/// Get the data of the current message
788
788
789
-
/** Get the POST request of a user in a Webhook or the message actually processed in a getUpdates() enviroment.
790
-
* \return the JSON users's message.
789
+
/** Get the POST request of a user in a Webhook or the message actually processed in a getUpdates() environment.
790
+
* \return the JSON user's message.
791
791
*/
792
792
publicfunctiongetData()
793
793
{
@@ -809,7 +809,7 @@ public function setData(array $data)
809
809
/// Get the text of the current message
810
810
811
811
/**
812
-
* \return the String users's text.
812
+
* \return the String user's text.
813
813
*/
814
814
publicfunctionText()
815
815
{
@@ -840,7 +840,7 @@ public function Caption()
840
840
/// Get the chat_id of the current message
841
841
842
842
/**
843
-
* \return the String users's chat_id.
843
+
* \return the String user's chat_id.
844
844
*/
845
845
publicfunctionChatID()
846
846
{
@@ -945,7 +945,7 @@ public function Callback_ID()
945
945
return$this->data['callback_query']['id'];
946
946
}
947
947
948
-
/// Get the Get the data of the current callback
948
+
/// Get the data of the current callback
949
949
950
950
/**
951
951
* \deprecated Use Text() instead
@@ -956,7 +956,7 @@ public function Callback_Data()
956
956
return$this->data['callback_query']['data'];
957
957
}
958
958
959
-
/// Get the Get the message of the current callback
959
+
/// Get the message of the current callback
960
960
961
961
/**
962
962
* \return the Message.
@@ -966,7 +966,7 @@ public function Callback_Message()
966
966
return$this->data['callback_query']['message'];
967
967
}
968
968
969
-
/// Get the Get the chat_id of the current callback
969
+
/// Get the chat_id of the current callback
970
970
971
971
/**
972
972
* \deprecated Use ChatId() instead
@@ -977,7 +977,7 @@ public function Callback_ChatID()
/// Get the Get the from_id of the current callback
980
+
/// Get the from_id of the current callback
981
981
982
982
/**
983
983
* \return the String callback_query from_id.
@@ -1149,7 +1149,7 @@ public function messageFromGroupTitle()
1149
1149
* \param $options Array of Array of String; Array of button rows, each represented by an Array of Strings
1150
1150
* \param $onetime Boolean Requests clients to hide the keyboard as soon as it's been used. Defaults to false.
1151
1151
* \param $resize Boolean Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
1152
-
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
1152
+
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot message is a reply (has reply_to_message_id), sender of the original message.
@@ -1183,8 +1183,8 @@ public function buildInlineKeyBoard(array $options)
1183
1183
* \param $text String; Array of button rows, each represented by an Array of Strings
1184
1184
* \param $url String Optional. HTTP url to be opened when button is pressed
1185
1185
* \param $callback_data String Optional. Data to be sent in a callback query to the bot when button is pressed
1186
-
* \param $switch_inline_query String Optional. 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.
1187
-
* \param $switch_inline_query_current_chat String Optional. Optional. 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.
1186
+
* \param $switch_inline_query String Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted.
1187
+
* \param $switch_inline_query_current_chat String Optional. Optional. If set, pressing the button will insert the bot 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.
1188
1188
* \param $callback_game String Optional. Description of the game that will be launched when the user presses the button.
1189
1189
* \param $pay Boolean Optional. Specify True, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>.
1190
1190
* \return the requested button as Array.
@@ -1238,7 +1238,7 @@ public function buildKeyboardButton($text, $request_contact = false, $request_lo
1238
1238
/// Hide a custom keyboard
1239
1239
1240
1240
/** Upon receiving a message with this object, Telegram clients will hide the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button.
1241
-
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
1241
+
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot message is a reply (has reply_to_message_id), sender of the original message.
@@ -1251,8 +1251,8 @@ public function buildKeyBoardHide($selective = true)
1251
1251
}
1252
1252
1253
1253
/// Display a reply interface to the user
1254
-
/* Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
1255
-
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
1254
+
/* Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot message and tapped Reply). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
1255
+
* \param $selective Boolean Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot message is a reply (has reply_to_message_id), sender of the original message.
1256
1256
* \return the requested force reply as Array
1257
1257
*/
1258
1258
publicfunctionbuildForceReply($selective = true)
@@ -1687,7 +1687,7 @@ public function getUpdates($offset = 0, $limit = 100, $timeout = 0, $update = tr
1687
1687
1688
1688
/// Serve an update
1689
1689
1690
-
/** Use this method to use the bultin function like Text() or Username() on a specific update.
1690
+
/** Use this method to use the builtin function like Text() or Username() on a specific update.
1691
1691
* \param $update Integer The index of the update in the updates array.
0 commit comments