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
@@ -613,6 +613,12 @@ public function sendVoice(array $content)
613
613
* <td>Longitude of location</td>
614
614
* </tr>
615
615
* <tr>
616
+
* <td>live_period</td>
617
+
* <td>Integer</td>
618
+
* <td>Optional</td>
619
+
* <td>Period in seconds for which the location will be updated (see <a href="https://telegram.org/blog/live-locations">Live Locations</a>, should be between 60 and 86400.</td>
620
+
* </tr>
621
+
* <tr>
616
622
* <td>disable_notification</td>
617
623
* <td>Boolean</td>
618
624
* <td>Optional</td>
@@ -638,7 +644,204 @@ public function sendLocation(array $content)
638
644
{
639
645
return$this->endpoint('sendLocation', $content);
640
646
}
647
+
648
+
/// Edit Message Live Location
649
+
650
+
/**
651
+
* Use this method to edit live location messages sent by the bot or via the bot (for <a href="https://core.telegram.org/bots/api#inline-mode">inline bots</a>). A location can be edited until its <em>live_period</em> expires or editing is explicitly disabled by a call to <a href="https://core.telegram.org/bots/api#stopmessagelivelocation">stopMessageLiveLocation</a>. On success, if the edited message was sent by the bot, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.<br/>Values inside $content:<br/>
652
+
* <table>
653
+
* <tr>
654
+
* <td><strong>Parameters</strong></td>
655
+
* <td><strong>Type</strong></td>
656
+
* <td><strong>Required</strong></td>
657
+
* <td><strong>Description</strong></td>
658
+
* </tr>
659
+
* <tr>
660
+
* <td>chat_id</td>
661
+
* <td>Integer or String</td>
662
+
* <td>Optional</td>
663
+
* <td>Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format \c \@channelusername)</td>
664
+
* </tr>
665
+
* <tr>
666
+
* <td>message_id</td>
667
+
* <td>Integer</td>
668
+
* <td>Optional</td>
669
+
* <td>Required if <em>inline_message_id</em> is not specified. Identifier of the sent message</td>
670
+
* </tr>
671
+
* <tr>
672
+
* <td>inline_message_id</td>
673
+
* <td>String</td>
674
+
* <td>Optional</td>
675
+
* <td>Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message</td>
* Use this method to stop updating a live location message sent by the bot or via the bot (for <a href="https://core.telegram.org/bots/api#inline-mode">inline bots</a>) before <em>live_period</em> expires. On success, if the message was sent by the bot, the sent <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.<br/>Values inside $content:<br/>
708
+
* <table>
709
+
* <tr>
710
+
* <td><strong>Parameters</strong></td>
711
+
* <td><strong>Type</strong></td>
712
+
* <td><strong>Required</strong></td>
713
+
* <td><strong>Description</strong></td>
714
+
* </tr>
715
+
* <tr>
716
+
* <td>chat_id</td>
717
+
* <td>Integer or String</td>
718
+
* <td>Optional</td>
719
+
* <td>Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format \c \@channelusername)</td>
720
+
* </tr>
721
+
* <tr>
722
+
* <td>message_id</td>
723
+
* <td>Integer</td>
724
+
* <td>Optional</td>
725
+
* <td>Required if <em>inline_message_id</em> is not specified. Identifier of the sent message</td>
726
+
* </tr>
727
+
* <tr>
728
+
* <td>inline_message_id</td>
729
+
* <td>String</td>
730
+
* <td>Optional</td>
731
+
* <td>Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message</td>
* Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field <em>can_set_sticker_set</em> optionally returned in <a href="https://core.telegram.org/bots/api#getchat">getChat</a> requests to check if the bot can use this method. Returns <em>True</em> on success.<br/>Values inside $content:<br/>
752
+
* <table>
753
+
* <tr>
754
+
* <td><strong>Parameters</strong></td>
755
+
* <td><strong>Type</strong></td>
756
+
* <td><strong>Required</strong></td>
757
+
* <td><strong>Description</strong></td>
758
+
* </tr>
759
+
* <tr>
760
+
* <td>chat_id</td>
761
+
* <td>Integer or String</td>
762
+
* <td>Yes</td>
763
+
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
* Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field <em>can_set_sticker_set</em> optionally returned in <a href="https://core.telegram.org/bots/api#getchat">getChat</a> requests to check if the bot can use this method. Returns <em>True</em> on success.<br/>Values inside $content:<br/>
779
+
* <table>
780
+
* <tr>
781
+
* <td><strong>Parameters</strong></td>
782
+
* <td><strong>Type</strong></td>
783
+
* <td><strong>Required</strong></td>
784
+
* <td><strong>Description</strong></td>
785
+
* </tr>
786
+
* <tr>
787
+
* <td>chat_id</td>
788
+
* <td>Integer or String</td>
789
+
* <td>Yes</td>
790
+
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
* Use this method to send a group of photos or videos as an album. On success, an array of the sent <a href="https://core.telegram.org/bots/api#message">Messages</a> is returned.<br/>Values inside $content:<br/>
805
+
* <table>
806
+
* <tr>
807
+
* <td><strong>Parameters</strong></td>
808
+
* <td><strong>Type</strong></td>
809
+
* <td><strong>Required</strong></td>
810
+
* <td><strong>Description</strong></td>
811
+
* </tr>
812
+
* <tr>
813
+
* <td>chat_id</td>
814
+
* <td>Integer or String</td>
815
+
* <td>Yes</td>
816
+
* <td>Unique identifier for the target chat or username of the target channel (in the format \c \@channelusername)</td>
817
+
* </tr>
818
+
* <tr>
819
+
* <td>media</td>
820
+
* <td>Array of <a href="https://core.telegram.org/bots/api#inputmedia">InputMedia</a></td>
821
+
* <td>Yes</td>
822
+
* <td>A JSON-serialized array describing photos and videos to be sent, must include 2–10 items</td>
823
+
* </tr>
824
+
* <tr>
825
+
* <td>disable_notification</td>
826
+
* <td>Boolean</td>
827
+
* <td>Optional</td>
828
+
* <td>Sends the messages <a href="https://telegram.org/blog/channels-2-0#silent-messages">silently</a>. Users will receive a notification with no sound.</td>
829
+
* </tr>
830
+
* <tr>
831
+
* <td>reply_to_message_id</td>
832
+
* <td>Integer</td>
833
+
* <td>Optional</td>
834
+
* <td>If the messages are a reply, ID of the original message</td>
@@ -1909,6 +2112,12 @@ public function buildForceReply($selective = true)
1909
2112
* <td>Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)</td>
1910
2113
* </tr>
1911
2114
* <tr>
2115
+
* <td>provider_data</td>
2116
+
* <td>String</td>
2117
+
* <td>Optional</td>
2118
+
* <td>JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.</td>
2119
+
* </tr>
2120
+
* <tr>
1912
2121
* <td>photo_url</td>
1913
2122
* <td>String</td>
1914
2123
* <td>Optional</td>
@@ -2431,7 +2640,7 @@ public function setChatDescription(array $content)
2431
2640
* <td>chat_id</td>
2432
2641
* <td>Integer or String</td>
2433
2642
* <td>Yes</td>
2434
-
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
2643
+
* <td>Unique identifier for the target chat or username of the target channel (in the format \c \@channelusername)</td>
2435
2644
* </tr>
2436
2645
* <tr>
2437
2646
* <td>message_id</td>
@@ -2469,7 +2678,7 @@ public function pinChatMessage(array $content)
2469
2678
* <td>chat_id</td>
2470
2679
* <td>Integer or String</td>
2471
2680
* <td>Yes</td>
2472
-
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
2681
+
* <td>Unique identifier for the target chat or username of the target channel (in the format \c \@channelusername)</td>
2473
2682
* </tr>
2474
2683
* </table>
2475
2684
* \param $content the request parameters as array
@@ -2525,9 +2734,9 @@ public function getStickerSet(array $content)
* <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>
2739
+
* <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="https://core.telegram.org/bots/api#sending-files">More info on Sending Files »</a></td>
2531
2740
* </tr>
2532
2741
* </table>
2533
2742
* \param $content the request parameters as array
@@ -2569,9 +2778,9 @@ public function uploadStickerFile(array $content)
2569
2778
* </tr>
2570
2779
* <tr>
2571
2780
* <td>png_sticker</td>
2572
-
* <td><a href="#inputfile">InputFile</a> or String</td>
2781
+
* <td><a href="https://core.telegram.org/bots/api#inputfile">InputFile</a> or String</td>
2573
2782
* <td>Yes</td>
2574
-
* <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>
2783
+
* <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="https://core.telegram.org/bots/api#sending-files">More info on Sending Files »</a></td>
2575
2784
* </tr>
2576
2785
* <tr>
2577
2786
* <td>emojis</td>
@@ -2587,7 +2796,7 @@ public function uploadStickerFile(array $content)
* <td>Position where the mask should be placed on faces</td>
2593
2802
* </tr>
@@ -2625,9 +2834,9 @@ public function createNewStickerSet(array $content)
2625
2834
* </tr>
2626
2835
* <tr>
2627
2836
* <td>png_sticker</td>
2628
-
* <td><a href="#inputfile">InputFile</a> or String</td>
2837
+
* <td><a href="https://core.telegram.org/bots/api#inputfile">InputFile</a> or String</td>
2629
2838
* <td>Yes</td>
2630
-
* <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>
2839
+
* <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="https://core.telegram.org/bots/api#sending-files">More info on Sending Files »</a></td>
2631
2840
* </tr>
2632
2841
* <tr>
2633
2842
* <td>emojis</td>
@@ -2637,7 +2846,7 @@ public function createNewStickerSet(array $content)
0 commit comments