@@ 631-645 (lines=15) @@ | ||
628 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
629 | * @throws \TelegramBot\Api\Exception |
|
630 | */ |
|
631 | public function sendSticker( |
|
632 | $chatId, |
|
633 | $sticker, |
|
634 | $replyToMessageId = null, |
|
635 | $replyMarkup = null, |
|
636 | $disableNotification = false |
|
637 | ) { |
|
638 | return Message::fromResponse($this->call('sendSticker', [ |
|
639 | 'chat_id' => $chatId, |
|
640 | 'sticker' => $sticker, |
|
641 | 'reply_to_message_id' => $replyToMessageId, |
|
642 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
643 | 'disable_notification' => (bool)$disableNotification, |
|
644 | ])); |
|
645 | } |
|
646 | ||
647 | /** |
|
648 | * Use this method to send video files, |
|
@@ 1115-1129 (lines=15) @@ | ||
1112 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
1113 | * @throws \TelegramBot\Api\Exception |
|
1114 | */ |
|
1115 | public function editMessageCaption( |
|
1116 | $chatId, |
|
1117 | $messageId, |
|
1118 | $caption = null, |
|
1119 | $replyMarkup = null, |
|
1120 | $inlineMessageId = null |
|
1121 | ) { |
|
1122 | return Message::fromResponse($this->call('editMessageCaption', [ |
|
1123 | 'chat_id' => $chatId, |
|
1124 | 'message_id' => $messageId, |
|
1125 | 'inline_message_id' => $inlineMessageId, |
|
1126 | 'caption' => $caption, |
|
1127 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
1128 | ])); |
|
1129 | } |
|
1130 | ||
1131 | /** |
|
1132 | * Use this method to edit only the reply markup of messages sent by the bot or via the bot |