@@ 685-707 (lines=23) @@ | ||
682 | * @return Message |
|
683 | * @throws Exception |
|
684 | */ |
|
685 | public function sendVideo( |
|
686 | $chatId, |
|
687 | $video, |
|
688 | $duration = null, |
|
689 | $caption = null, |
|
690 | $replyToMessageId = null, |
|
691 | $replyMarkup = null, |
|
692 | $disableNotification = false, |
|
693 | $supportsStreaming = false, |
|
694 | $parseMode = null |
|
695 | ) { |
|
696 | return Message::fromResponse($this->call('sendVideo', [ |
|
697 | 'chat_id' => $chatId, |
|
698 | 'video' => $video, |
|
699 | 'duration' => $duration, |
|
700 | 'caption' => $caption, |
|
701 | 'reply_to_message_id' => $replyToMessageId, |
|
702 | 'reply_markup' => $replyMarkup, |
|
703 | 'disable_notification' => (bool)$disableNotification, |
|
704 | 'supports_streaming' => (bool)$supportsStreaming, |
|
705 | 'parse_mode' => $parseMode |
|
706 | ])); |
|
707 | } |
|
708 | ||
709 | /** |
|
710 | * Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound), |
|
@@ 727-747 (lines=21) @@ | ||
724 | * @return Message |
|
725 | * @throws Exception |
|
726 | */ |
|
727 | public function sendAnimation( |
|
728 | $chatId, |
|
729 | $animation, |
|
730 | $duration = null, |
|
731 | $caption = null, |
|
732 | $replyToMessageId = null, |
|
733 | $replyMarkup = null, |
|
734 | $disableNotification = false, |
|
735 | $parseMode = null |
|
736 | ) { |
|
737 | return Message::fromResponse($this->call('sendAnimation', [ |
|
738 | 'chat_id' => $chatId, |
|
739 | 'animation' => $animation, |
|
740 | 'duration' => $duration, |
|
741 | 'caption' => $caption, |
|
742 | 'reply_to_message_id' => $replyToMessageId, |
|
743 | 'reply_markup' => $replyMarkup, |
|
744 | 'disable_notification' => (bool)$disableNotification, |
|
745 | 'parse_mode' => $parseMode |
|
746 | ])); |
|
747 | } |
|
748 | ||
749 | /** |
|
750 | * Use this method to send audio files, |
|
@@ 840-862 (lines=23) @@ | ||
837 | * There is no more need to specify a non-empty title or performer while sending the audio by file_id. |
|
838 | * |
|
839 | */ |
|
840 | public function sendAudio( |
|
841 | $chatId, |
|
842 | $audio, |
|
843 | $duration = null, |
|
844 | $performer = null, |
|
845 | $title = null, |
|
846 | $replyToMessageId = null, |
|
847 | $replyMarkup = null, |
|
848 | $disableNotification = false, |
|
849 | $parseMode = null |
|
850 | ) { |
|
851 | return Message::fromResponse($this->call('sendAudio', [ |
|
852 | 'chat_id' => $chatId, |
|
853 | 'audio' => $audio, |
|
854 | 'duration' => $duration, |
|
855 | 'performer' => $performer, |
|
856 | 'title' => $title, |
|
857 | 'reply_to_message_id' => $replyToMessageId, |
|
858 | 'reply_markup' => $replyMarkup, |
|
859 | 'disable_notification' => (bool)$disableNotification, |
|
860 | 'parse_mode' => $parseMode |
|
861 | ])); |
|
862 | } |
|
863 | ||
864 | /** |
|
865 | * Use this method to send photos. On success, the sent Message is returned. |