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
* 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.
@@ -2167,7 +2167,7 @@ public function exportChatInviteLink(array $content)
* 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.
@@ -2199,7 +2199,7 @@ public function setChatPhoto(array $content)
2199
2199
return$this->endpoint('setChatPhoto', $content);
2200
2200
}
2201
2201
2202
-
// Delete Chat Photo
2202
+
/// Delete Chat Photo
2203
2203
2204
2204
/**
2205
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.
@@ -2225,7 +2225,7 @@ public function deleteChatPhoto(array $content)
* Use this method to change the title of a chat. Titles 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.
@@ -2257,7 +2257,7 @@ public function setChatTitle(array $content)
2257
2257
return$this->endpoint('setChatTitle', $content);
2258
2258
}
2259
2259
2260
-
// Set Chat Description
2260
+
/// Set Chat Description
2261
2261
2262
2262
/**
2263
2263
* Use this method to change the description of 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 True on success.
@@ -2289,7 +2289,7 @@ public function setChatDescription(array $content)
* Use this method to pin a message in a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
@@ -2327,7 +2327,7 @@ public function pinChatMessage(array $content)
* Use this method to unpin a message in a supergroup chat. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
@@ -2352,6 +2352,234 @@ public function unpinChatMessage(array $content)
* Use this method to get a sticker set. On success, a StickerSet object is returned.
2360
+
* <table>
2361
+
* <tr>
2362
+
* <td><strong>Parameters</strong></td>
2363
+
* <td><strong>Type</strong></td>
2364
+
* <td><strong>Required</strong></td>
2365
+
* <td><strong>Description</strong></td>
2366
+
* </tr>
2367
+
* <tr>
2368
+
* <td>name</td>
2369
+
* <td>String</td>
2370
+
* <td>Yes</td>
2371
+
* <td>Short name of the sticker set that is used in <code>t.me/addstickers/</code> URLs (e.g., <em>animals</em>)</td>
2372
+
* </tr>
2373
+
* </table>
2374
+
* \param $content the request parameters as array
2375
+
* \return the JSON Telegram's reply.
2376
+
*/
2377
+
publicfunctiongetStickerSet(array$content)
2378
+
{
2379
+
return$this->endpoint('getStickerSet', $content);
2380
+
}
2381
+
2382
+
/// Upload Sticker File
2383
+
2384
+
/**
2385
+
* Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
2386
+
* <table>
2387
+
* <tr>
2388
+
* <td><strong>Parameters</strong></td>
2389
+
* <td><strong>Type</strong></td>
2390
+
* <td><strong>Required</strong></td>
2391
+
* <td><strong>Description</strong></td>
2392
+
* </tr>
2393
+
* <tr>
2394
+
* <td>user_id</td>
2395
+
* <td>Integer</td>
2396
+
* <td>Yes</td>
2397
+
* <td>User identifier of sticker file owner</td>
2398
+
* </tr>
2399
+
* <tr>
2400
+
* <td>png_sticker</td>
2401
+
* <td><a href="#inputfile">InputFile</a></td>
2402
+
* <td>Yes</td>
2403
+
* <td><strong>Png</strong> 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. <a href="#sending-files">More info on Sending Files »</a></td>
* Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. Returns True on success.
2418
+
* <table>
2419
+
* <tr>
2420
+
* <td><strong>Parameters</strong></td>
2421
+
* <td><strong>Type</strong></td>
2422
+
* <td><strong>Required</strong></td>
2423
+
* <td><strong>Description</strong></td>
2424
+
* </tr>
2425
+
* <tr>
2426
+
* <td>user_id</td>
2427
+
* <td>Integer</td>
2428
+
* <td>Yes</td>
2429
+
* <td>User identifier of created sticker set owner</td>
2430
+
* </tr>
2431
+
* <tr>
2432
+
* <td>name</td>
2433
+
* <td>String</td>
2434
+
* <td>Yes</td>
2435
+
* <td>Short name of sticker set, to be used in <code>t.me/addstickers/</code> URLs (e.g., <em>animals</em>). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in <em>“_by_<bot username>”</em>. <em><bot_username></em> is case insensitive. 1-64 characters.</td>
2436
+
* </tr>
2437
+
* <tr>
2438
+
* <td>title</td>
2439
+
* <td>String</td>
2440
+
* <td>Yes</td>
2441
+
* <td>Sticker set title, 1-64 characters</td>
2442
+
* </tr>
2443
+
* <tr>
2444
+
* <td>png_sticker</td>
2445
+
* <td><a href="#inputfile">InputFile</a> or String</td>
2446
+
* <td>Yes</td>
2447
+
* <td><strong>Png</strong> 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 <em>file_id</em> 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, or upload a new one using multipart/form-data. <a href="#sending-files">More info on Sending Files »</a></td>
2448
+
* </tr>
2449
+
* <tr>
2450
+
* <td>emojis</td>
2451
+
* <td>String</td>
2452
+
* <td>Yes</td>
2453
+
* <td>One or more emoji corresponding to the sticker</td>
2454
+
* </tr>
2455
+
* <tr>
2456
+
* <td>is_masks</td>
2457
+
* <td>Boolean</td>
2458
+
* <td>Optional</td>
2459
+
* <td>Pass <em>True</em>, if a set of mask stickers should be created</td>
* Use this method to add a new sticker to a set created by the bot. Returns True on success.
2480
+
* <table>
2481
+
* <tr>
2482
+
* <td><strong>Parameters</strong></td>
2483
+
* <td><strong>Type</strong></td>
2484
+
* <td><strong>Required</strong></td>
2485
+
* <td><strong>Description</strong></td>
2486
+
* </tr>
2487
+
* <tr>
2488
+
* <td>user_id</td>
2489
+
* <td>Integer</td>
2490
+
* <td>Yes</td>
2491
+
* <td>User identifier of sticker set owner</td>
2492
+
* </tr>
2493
+
* <tr>
2494
+
* <td>name</td>
2495
+
* <td>String</td>
2496
+
* <td>Yes</td>
2497
+
* <td>Sticker set name</td>
2498
+
* </tr>
2499
+
* <tr>
2500
+
* <td>png_sticker</td>
2501
+
* <td><a href="#inputfile">InputFile</a> or String</td>
2502
+
* <td>Yes</td>
2503
+
* <td><strong>Png</strong> 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 <em>file_id</em> 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, or upload a new one using multipart/form-data. <a href="#sending-files">More info on Sending Files »</a></td>
2504
+
* </tr>
2505
+
* <tr>
2506
+
* <td>emojis</td>
2507
+
* <td>String</td>
2508
+
* <td>Yes</td>
2509
+
* <td>One or more emoji corresponding to the sticker</td>
0 commit comments