|
@@ 642-656 (lines=15) @@
|
| 639 |
|
* @throws \TelegramBot\Api\InvalidArgumentException |
| 640 |
|
* @throws \TelegramBot\Api\Exception |
| 641 |
|
*/ |
| 642 |
|
public function sendSticker( |
| 643 |
|
$chatId, |
| 644 |
|
$sticker, |
| 645 |
|
$replyToMessageId = null, |
| 646 |
|
$replyMarkup = null, |
| 647 |
|
$disableNotification = false |
| 648 |
|
) { |
| 649 |
|
return Message::fromResponse($this->call('sendSticker', [ |
| 650 |
|
'chat_id' => $chatId, |
| 651 |
|
'sticker' => $sticker, |
| 652 |
|
'reply_to_message_id' => $replyToMessageId, |
| 653 |
|
'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
| 654 |
|
'disable_notification' => (bool)$disableNotification, |
| 655 |
|
])); |
| 656 |
|
} |
| 657 |
|
|
| 658 |
|
/** |
| 659 |
|
* Use this method to send video files, |
|
@@ 1085-1099 (lines=15) @@
|
| 1082 |
|
* @throws \TelegramBot\Api\InvalidArgumentException |
| 1083 |
|
* @throws \TelegramBot\Api\Exception |
| 1084 |
|
*/ |
| 1085 |
|
public function editMessageCaption( |
| 1086 |
|
$chatId, |
| 1087 |
|
$messageId, |
| 1088 |
|
$caption = null, |
| 1089 |
|
$replyMarkup = null, |
| 1090 |
|
$inlineMessageId = null |
| 1091 |
|
) { |
| 1092 |
|
return Message::fromResponse($this->call('editMessageCaption', [ |
| 1093 |
|
'chat_id' => $chatId, |
| 1094 |
|
'message_id' => $messageId, |
| 1095 |
|
'inline_message_id' => $inlineMessageId, |
| 1096 |
|
'caption' => $caption, |
| 1097 |
|
'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
| 1098 |
|
])); |
| 1099 |
|
} |
| 1100 |
|
|
| 1101 |
|
/** |
| 1102 |
|
* Use this method to edit only the reply markup of messages sent by the bot or via the bot |