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
Copy file name to clipboardexpand all lines: Telegram.php
+88
Original file line number
Diff line number
Diff line change
@@ -416,6 +416,94 @@ public function sendDocument(array $content)
416
416
{
417
417
return$this->endpoint('sendDocument', $content);
418
418
}
419
+
420
+
/// Send an animation
421
+
422
+
/**
423
+
* 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/>
424
+
* </table>
425
+
* <tr>
426
+
* <th>Parameter</th>
427
+
* <th>Type</th>
428
+
* <th>Required</th>
429
+
* <th>Description</th>
430
+
* </tr>
431
+
* </thead>
432
+
* <tbody>
433
+
* <tr>
434
+
* <td>chat_id</td>
435
+
* <td>Integer or String</td>
436
+
* <td>Yes</td>
437
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
438
+
* </tr>
439
+
* <tr>
440
+
* <td>animation</td>
441
+
* <td><a href="#inputfile">InputFile</a> or String</td>
442
+
* <td>Yes</td>
443
+
* <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>
444
+
* </tr>
445
+
* <tr>
446
+
* <td>duration</td>
447
+
* <td>Integer</td>
448
+
* <td>Optional</td>
449
+
* <td>Duration of sent animation in seconds</td>
450
+
* </tr>
451
+
* <tr>
452
+
* <td>width</td>
453
+
* <td>Integer</td>
454
+
* <td>Optional</td>
455
+
* <td>Animation width</td>
456
+
* </tr>
457
+
* <tr>
458
+
* <td>height</td>
459
+
* <td>Integer</td>
460
+
* <td>Optional</td>
461
+
* <td>Animation height</td>
462
+
* </tr>
463
+
* <tr>
464
+
* <td>thumb</td>
465
+
* <td><a href="#inputfile">InputFile</a> or String</td>
466
+
* <td>Optional</td>
467
+
* <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>
468
+
* </tr>
469
+
* <tr>
470
+
* <td>caption</td>
471
+
* <td>String</td>
472
+
* <td>Optional</td>
473
+
* <td>Animation caption (may also be used when resending animation by <em>file_id</em>), 0-1024 characters</td>
474
+
* </tr>
475
+
* <tr>
476
+
* <td>parse_mode</td>
477
+
* <td>String</td>
478
+
* <td>Optional</td>
479
+
* <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>
480
+
* </tr>
481
+
* <tr>
482
+
* <td>disable_notification</td>
483
+
* <td>Boolean</td>
484
+
* <td>Optional</td>
485
+
* <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>
486
+
* </tr>
487
+
* <tr>
488
+
* <td>reply_to_message_id</td>
489
+
* <td>Integer</td>
490
+
* <td>Optional</td>
491
+
* <td>If the message is a reply, ID of the original message</td>
492
+
* </tr>
493
+
* <tr>
494
+
* <td>reply_markup</td>
495
+
* <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>
496
+
* <td>Optional</td>
497
+
* <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>
0 commit comments