@@ 644-658 (lines=15) @@ | ||
641 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
642 | * @throws \TelegramBot\Api\Exception |
|
643 | */ |
|
644 | public function sendSticker( |
|
645 | $chatId, |
|
646 | $sticker, |
|
647 | $replyToMessageId = null, |
|
648 | $replyMarkup = null, |
|
649 | $disableNotification = false |
|
650 | ) { |
|
651 | return Message::fromResponse($this->call('sendSticker', [ |
|
652 | 'chat_id' => $chatId, |
|
653 | 'sticker' => $sticker, |
|
654 | 'reply_to_message_id' => $replyToMessageId, |
|
655 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
656 | 'disable_notification' => (bool)$disableNotification, |
|
657 | ])); |
|
658 | } |
|
659 | ||
660 | /** |
|
661 | * Use this method to send video files, |
|
@@ 1128-1142 (lines=15) @@ | ||
1125 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
1126 | * @throws \TelegramBot\Api\Exception |
|
1127 | */ |
|
1128 | public function editMessageCaption( |
|
1129 | $chatId, |
|
1130 | $messageId, |
|
1131 | $caption = null, |
|
1132 | $replyMarkup = null, |
|
1133 | $inlineMessageId = null |
|
1134 | ) { |
|
1135 | return Message::fromResponse($this->call('editMessageCaption', [ |
|
1136 | 'chat_id' => $chatId, |
|
1137 | 'message_id' => $messageId, |
|
1138 | 'inline_message_id' => $inlineMessageId, |
|
1139 | 'caption' => $caption, |
|
1140 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
1141 | ])); |
|
1142 | } |
|
1143 | ||
1144 | /** |
|
1145 | * Use this method to edit only the reply markup of messages sent by the bot or via the bot |