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
@@ -420,94 +420,94 @@ public function sendDocument(array $content)
420
420
{
421
421
return$this->endpoint('sendDocument', $content);
422
422
}
423
-
423
+
424
424
/// Send an animation
425
425
426
426
/**
427
427
* Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.<br/>Values inside $content:<br/>
428
-
* </table>
429
-
* <tr>
430
-
* <th>Parameter</th>
431
-
* <th>Type</th>
432
-
* <th>Required</th>
433
-
* <th>Description</th>
434
-
* </tr>
435
-
* </thead>
436
-
* <tbody>
437
-
* <tr>
438
-
* <td>chat_id</td>
439
-
* <td>Integer or String</td>
440
-
* <td>Yes</td>
441
-
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
442
-
* </tr>
443
-
* <tr>
444
-
* <td>animation</td>
445
-
* <td><a href="#inputfile">InputFile</a> or String</td>
446
-
* <td>Yes</td>
447
-
* <td>Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. <a href="#sending-files">More info on Sending Files »</a></td>
448
-
* </tr>
449
-
* <tr>
450
-
* <td>duration</td>
451
-
* <td>Integer</td>
452
-
* <td>Optional</td>
453
-
* <td>Duration of sent animation in seconds</td>
454
-
* </tr>
455
-
* <tr>
456
-
* <td>width</td>
457
-
* <td>Integer</td>
458
-
* <td>Optional</td>
459
-
* <td>Animation width</td>
460
-
* </tr>
461
-
* <tr>
462
-
* <td>height</td>
463
-
* <td>Integer</td>
464
-
* <td>Optional</td>
465
-
* <td>Animation height</td>
466
-
* </tr>
467
-
* <tr>
468
-
* <td>thumb</td>
469
-
* <td><a href="#inputfile">InputFile</a> or String</td>
470
-
* <td>Optional</td>
471
-
* <td>Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail‘s width and height should not exceed 90. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="#sending-files">More info on Sending Files »</a></td>
472
-
* </tr>
473
-
* <tr>
474
-
* <td>caption</td>
475
-
* <td>String</td>
476
-
* <td>Optional</td>
477
-
* <td>Animation caption (may also be used when resending animation by <em>file_id</em>), 0-1024 characters</td>
478
-
* </tr>
479
-
* <tr>
480
-
* <td>parse_mode</td>
481
-
* <td>String</td>
482
-
* <td>Optional</td>
483
-
* <td>Send <a href="#markdown-style"><em>Markdown</em></a> or <a href="#html-style"><em>HTML</em></a>, if you want Telegram apps to show <a href="#formatting-* options">bold, italic, fixed-width text or inline URLs</a> in the media caption.</td>
484
-
* </tr>
485
-
* <tr>
486
-
* <td>disable_notification</td>
487
-
* <td>Boolean</td>
488
-
* <td>Optional</td>
489
-
* <td>Sends the message <a href="https://telegram.org/blog/channels-2-0#silent-messages">silently</a>. Users will receive a notification with no sound.</td>
490
-
* </tr>
491
-
* <tr>
492
-
* <td>reply_to_message_id</td>
493
-
* <td>Integer</td>
494
-
* <td>Optional</td>
495
-
* <td>If the message is a reply, ID of the original message</td>
496
-
* </tr>
497
-
* <tr>
498
-
* <td>reply_markup</td>
499
-
* <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>
500
-
* <td>Optional</td>
501
-
* <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>
502
-
* </tr>
503
-
* </table>
428
+
* </table>
429
+
* <tr>
430
+
* <th>Parameter</th>
431
+
* <th>Type</th>
432
+
* <th>Required</th>
433
+
* <th>Description</th>
434
+
* </tr>
435
+
* </thead>
436
+
* <tbody>
437
+
* <tr>
438
+
* <td>chat_id</td>
439
+
* <td>Integer or String</td>
440
+
* <td>Yes</td>
441
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
442
+
* </tr>
443
+
* <tr>
444
+
* <td>animation</td>
445
+
* <td><a href="#inputfile">InputFile</a> or String</td>
446
+
* <td>Yes</td>
447
+
* <td>Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. <a href="#sending-files">More info on Sending Files »</a></td>
448
+
* </tr>
449
+
* <tr>
450
+
* <td>duration</td>
451
+
* <td>Integer</td>
452
+
* <td>Optional</td>
453
+
* <td>Duration of sent animation in seconds</td>
454
+
* </tr>
455
+
* <tr>
456
+
* <td>width</td>
457
+
* <td>Integer</td>
458
+
* <td>Optional</td>
459
+
* <td>Animation width</td>
460
+
* </tr>
461
+
* <tr>
462
+
* <td>height</td>
463
+
* <td>Integer</td>
464
+
* <td>Optional</td>
465
+
* <td>Animation height</td>
466
+
* </tr>
467
+
* <tr>
468
+
* <td>thumb</td>
469
+
* <td><a href="#inputfile">InputFile</a> or String</td>
470
+
* <td>Optional</td>
471
+
* <td>Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail‘s width and height should not exceed 90. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. <a href="#sending-files">More info on Sending Files »</a></td>
472
+
* </tr>
473
+
* <tr>
474
+
* <td>caption</td>
475
+
* <td>String</td>
476
+
* <td>Optional</td>
477
+
* <td>Animation caption (may also be used when resending animation by <em>file_id</em>), 0-1024 characters</td>
478
+
* </tr>
479
+
* <tr>
480
+
* <td>parse_mode</td>
481
+
* <td>String</td>
482
+
* <td>Optional</td>
483
+
* <td>Send <a href="#markdown-style"><em>Markdown</em></a> or <a href="#html-style"><em>HTML</em></a>, if you want Telegram apps to show <a href="#formatting-* options">bold, italic, fixed-width text or inline URLs</a> in the media caption.</td>
484
+
* </tr>
485
+
* <tr>
486
+
* <td>disable_notification</td>
487
+
* <td>Boolean</td>
488
+
* <td>Optional</td>
489
+
* <td>Sends the message <a href="https://telegram.org/blog/channels-2-0#silent-messages">silently</a>. Users will receive a notification with no sound.</td>
490
+
* </tr>
491
+
* <tr>
492
+
* <td>reply_to_message_id</td>
493
+
* <td>Integer</td>
494
+
* <td>Optional</td>
495
+
* <td>If the message is a reply, ID of the original message</td>
496
+
* </tr>
497
+
* <tr>
498
+
* <td>reply_markup</td>
499
+
* <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>
500
+
* <td>Optional</td>
501
+
* <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>
502
+
* </tr>
503
+
* </table>
504
504
* \param $content the request parameters as array
505
505
* \return the JSON Telegram's reply.
506
506
*/
507
507
publicfunctionsendAnimation(array$content)
508
508
{
509
509
return$this->endpoint('sendAnimation', $content);
510
-
}
510
+
}
511
511
512
512
/// Send a sticker
513
513
@@ -1022,6 +1022,7 @@ public function sendVenue(array $content)
1022
1022
}
1023
1023
1024
1024
//Send contact
1025
+
1025
1026
/**Use this method to send phone contacts. On success, the sent <a href="https://core.telegram.org/bots/api#message">Message</a> is returned.</p> <br/>Values inside $content:<br/>
1026
1027
* <table>
1027
1028
* <tr>
@@ -1683,7 +1684,7 @@ public function editMessageReplyMarkup(array $content)
0 commit comments