Skip to content

Commit 14a16b7

Browse files
committed
Fix: grammar and spelling mistakes
1 parent fd28b8a commit 14a16b7

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Telegram.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function __construct($bot_token, $log_errors = true, array $proxy = [])
111111
/// Do requests to Telegram Bot API
112112

113113
/**
114-
* Contacts the various API's endpoints
114+
* Contacts the various API endpoints
115115
* \param $api the API endpoint
116116
* \param $content the request parameters as array
117117
* \param $post boolean tells if $content needs to be sends
@@ -533,7 +533,7 @@ public function getChatMemberCount(array $content)
533533
}
534534

535535
/**
536-
* For retrocompatibility
536+
* For retro compatibility
537537
* \param $content the request parameters as array
538538
* \return the JSON Telegram's reply.
539539
*/
@@ -658,7 +658,7 @@ public function getChatMenuButton(array $content)
658658
return $this->endpoint('getChatMenuButton', $content);
659659
}
660660

661-
/// Set the default aministrator rights
661+
/// Set the default administrator rights
662662

663663
/**
664664
* See <a href="https://core.telegram.org/bots/api#setmydefaultadministratorrights">setMyDefaultAdministratorRights</a> for the input values
@@ -670,7 +670,7 @@ public function setMyDefaultAdministratorRights(array $content)
670670
return $this->endpoint('setMyDefaultAdministratorRights', $content);
671671
}
672672

673-
/// Get the default aministrator rights
673+
/// Get the default administrator rights
674674

675675
/**
676676
* 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)
735735
/// Use this method to download a file
736736

737737
/**
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.
739739
* \param $telegram_file_path String File path on Telegram servers
740740
* \param $local_file_path String File path where save the file.
741741
*/
@@ -755,9 +755,9 @@ public function downloadFile($telegram_file_path, $local_file_path)
755755
/// Set a WebHook for the bot
756756

757757
/**
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.
759759
*
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.
761761
* \param $url String HTTPS url to send updates to. Use an empty string to remove webhook integration
762762
* \param $certificate InputFile Upload your public key certificate so that the root certificate in use can be checked
763763
* \return the JSON Telegram's reply.
@@ -786,8 +786,8 @@ public function deleteWebhook()
786786

787787
/// Get the data of the current message
788788

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.
791791
*/
792792
public function getData()
793793
{
@@ -809,7 +809,7 @@ public function setData(array $data)
809809
/// Get the text of the current message
810810

811811
/**
812-
* \return the String users's text.
812+
* \return the String user's text.
813813
*/
814814
public function Text()
815815
{
@@ -840,7 +840,7 @@ public function Caption()
840840
/// Get the chat_id of the current message
841841

842842
/**
843-
* \return the String users's chat_id.
843+
* \return the String user's chat_id.
844844
*/
845845
public function ChatID()
846846
{
@@ -945,7 +945,7 @@ public function Callback_ID()
945945
return $this->data['callback_query']['id'];
946946
}
947947

948-
/// Get the Get the data of the current callback
948+
/// Get the data of the current callback
949949

950950
/**
951951
* \deprecated Use Text() instead
@@ -956,7 +956,7 @@ public function Callback_Data()
956956
return $this->data['callback_query']['data'];
957957
}
958958

959-
/// Get the Get the message of the current callback
959+
/// Get the message of the current callback
960960

961961
/**
962962
* \return the Message.
@@ -966,7 +966,7 @@ public function Callback_Message()
966966
return $this->data['callback_query']['message'];
967967
}
968968

969-
/// Get the Get the chat_id of the current callback
969+
/// Get the chat_id of the current callback
970970

971971
/**
972972
* \deprecated Use ChatId() instead
@@ -977,7 +977,7 @@ public function Callback_ChatID()
977977
return $this->data['callback_query']['message']['chat']['id'];
978978
}
979979

980-
/// Get the Get the from_id of the current callback
980+
/// Get the from_id of the current callback
981981

982982
/**
983983
* \return the String callback_query from_id.
@@ -1149,7 +1149,7 @@ public function messageFromGroupTitle()
11491149
* \param $options Array of Array of String; Array of button rows, each represented by an Array of Strings
11501150
* \param $onetime Boolean Requests clients to hide the keyboard as soon as it's been used. Defaults to false.
11511151
* \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.
11531153
* \return the requested keyboard as Json.
11541154
*/
11551155
public function buildKeyBoard(array $options, $onetime = false, $resize = false, $selective = true)
@@ -1183,8 +1183,8 @@ public function buildInlineKeyBoard(array $options)
11831183
* \param $text String; Array of button rows, each represented by an Array of Strings
11841184
* \param $url String Optional. HTTP url to be opened when button is pressed
11851185
* \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.
11881188
* \param $callback_game String Optional. Description of the game that will be launched when the user presses the button.
11891189
* \param $pay Boolean Optional. Specify True, to send a <a href="https://core.telegram.org/bots/api#payments">Pay button</a>.
11901190
* \return the requested button as Array.
@@ -1238,7 +1238,7 @@ public function buildKeyboardButton($text, $request_contact = false, $request_lo
12381238
/// Hide a custom keyboard
12391239

12401240
/** 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.
12421242
* \return the requested keyboard hide as Array.
12431243
*/
12441244
public function buildKeyBoardHide($selective = true)
@@ -1251,8 +1251,8 @@ public function buildKeyBoardHide($selective = true)
12511251
}
12521252

12531253
/// 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.
12561256
* \return the requested force reply as Array
12571257
*/
12581258
public function buildForceReply($selective = true)
@@ -1687,7 +1687,7 @@ public function getUpdates($offset = 0, $limit = 100, $timeout = 0, $update = tr
16871687

16881688
/// Serve an update
16891689

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.
16911691
* \param $update Integer The index of the update in the updates array.
16921692
*/
16931693
public function serveUpdate($update)

0 commit comments

Comments
 (0)