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