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
* <td>A JSON-serialized object for an <a href="https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating">inline keyboard</a>. If empty, one 'Pay <code>total price</code>' button will be shown. If not empty, the first button must be a Pay button.</td>
1855
1855
* </tr>
@@ -1993,7 +1993,7 @@ public function answerPreCheckoutQuery(array $content)
1993
1993
* </tr>
1994
1994
* <tr>
1995
1995
* <td>reply_markup</td>
1996
-
* <td><a href="#inlinekeyboardmarkup">InlineKeyboardMarkup</a> or <a href="#replykeyboardmarkup">ReplyKeyboardMarkup</a> or <a href="#replykeyboardremove">ReplyKeyboardRemove</a> or <a href="#forcereply">ForceReply</a></td>
1996
+
* <td><a href="https://core.telegram.org/bots/api#inlinekeyboardmarkup">InlineKeyboardMarkup</a> or <a href="https://core.telegram.org/bots/api#replykeyboardmarkup">ReplyKeyboardMarkup</a> or <a href="https://core.telegram.org/bots/api#replykeyboardremove">ReplyKeyboardRemove</a> or <a href="https://core.telegram.org/bots/api#forcereply">ForceReply</a></td>
1997
1997
* <td>Optional</td>
1998
1998
* <td>Additional interface options. A JSON-serialized object for an <a href="https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating">inline keyboard</a>, <a href="https://core.telegram.org/bots#keyboards">custom reply keyboard</a>, instructions to remove reply keyboard or to force a reply from the user.</td>
1999
1999
* </tr>
@@ -2024,9 +2024,9 @@ public function sendVideoNote(array $content)
2024
2024
* </tr>
2025
2025
* <tr>
2026
2026
* <td>photo</td>
2027
-
* <td><a href="#inputfile">InputFile</a> or String</td>
2027
+
* <td><a href="https://core.telegram.org/bots/api#inputfile">InputFile</a> or String</td>
2028
2028
* <td>Yes</td>
2029
-
* <td>Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. <a href="#sending-files">More info on Sending Files »</a></td>
2029
+
* <td>Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More info on Sending Files »</a></td>
2030
2030
* </tr>
2031
2031
* <tr>
2032
2032
* <td>caption</td>
@@ -2048,7 +2048,7 @@ public function sendVideoNote(array $content)
2048
2048
* </tr>
2049
2049
* <tr>
2050
2050
* <td>reply_markup</td>
2051
-
* <td><a href="#inlinekeyboardmarkup">InlineKeyboardMarkup</a> or <a href="#replykeyboardmarkup">ReplyKeyboardMarkup</a> or <a href="#replykeyboardremove">ReplyKeyboardRemove</a> or <a href="#forcereply">ForceReply</a></td>
2051
+
* <td><a href="https://core.telegram.org/bots/api#inlinekeyboardmarkup">InlineKeyboardMarkup</a> or <a href="https://core.telegram.org/bots/api#replykeyboardmarkup">ReplyKeyboardMarkup</a> or <a href="https://core.telegram.org/bots/api#replykeyboardremove">ReplyKeyboardRemove</a> or <a href="https://core.telegram.org/bots/api#forcereply">ForceReply</a></td>
2052
2052
* <td>Optional</td>
2053
2053
* <td>Additional interface options. A JSON-serialized object for an <a href="https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating">inline keyboard</a>, <a href="https://core.telegram.org/bots#keyboards">custom reply keyboard</a>, instructions to remove reply keyboard or to force a reply from the user.</td>
2054
2054
* </tr>
@@ -2140,6 +2140,90 @@ public function promoteChatMember(array $content)
* Use this method to export an invite link to a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns exported invite link as String on success.
2148
+
* <table>
2149
+
* <tr>
2150
+
* <td><strong>Parameters</strong></td>
2151
+
* <td><strong>Type</strong></td>
2152
+
* <td><strong>Required</strong></td>
2153
+
* <td><strong>Description</strong></td>
2154
+
* </tr>
2155
+
* <tr>
2156
+
* <td>chat_id</td>
2157
+
* <td>Integer or String</td>
2158
+
* <td>Yes</td>
2159
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
* Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success. Note: In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting is off in the target group.
2174
+
* <table>
2175
+
* <tr>
2176
+
* <td><strong>Parameters</strong></td>
2177
+
* <td><strong>Type</strong></td>
2178
+
* <td><strong>Required</strong></td>
2179
+
* <td><strong>Description</strong></td>
2180
+
* </tr>
2181
+
* <tr>
2182
+
* <td>chat_id</td>
2183
+
* <td>Integer or String</td>
2184
+
* <td>Yes</td>
2185
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
* <td>New chat photo, uploaded using multipart/form-data</td>
2192
+
* </tr>
2193
+
* </table>
2194
+
* \param $content the request parameters as array
2195
+
* \return the JSON Telegram's reply.
2196
+
*/
2197
+
publicfunctionsetChatPhoto(array$content)
2198
+
{
2199
+
return$this->endpoint('setChatPhoto', $content);
2200
+
}
2201
+
2202
+
// Delete Chat Photo
2203
+
2204
+
/**
2205
+
* Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success. Note: In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting is off in the target group.
2206
+
* <table>
2207
+
* <tr>
2208
+
* <td><strong>Parameters</strong></td>
2209
+
* <td><strong>Type</strong></td>
2210
+
* <td><strong>Required</strong></td>
2211
+
* <td><strong>Description</strong></td>
2212
+
* </tr>
2213
+
* <tr>
2214
+
* <td>chat_id</td>
2215
+
* <td>Integer or String</td>
2216
+
* <td>Yes</td>
2217
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
0 commit comments