Add new message control and editing methods to Bot
This commit is contained in:
parent
02ce45a643
commit
25e62db274
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
use TgBotLib\Objects\Message;
|
||||
use TgBotLib\Objects\MessageEntity;
|
||||
use TgBotLib\Objects\MessageId;
|
||||
use TgBotLib\Objects\Poll;
|
||||
use TgBotLib\Objects\ReactionType;
|
||||
use TgBotLib\Objects\ReplyKeyboardMarkup;
|
||||
use TgBotLib\Objects\ReplyKeyboardRemove;
|
||||
|
@ -143,6 +144,12 @@
|
|||
* @method Message editMessageText(string $text, ?string $business_connection_id=null, null|string|int $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?ParseMode $parse_mode=null, MessageEntity[]|null $entities=null, ?LinkPreviewOptions $link_preview_options=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
|
||||
* @method Message editMessageCaption(?string $business_connection_id=null, null|string|int $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?string $caption=null, ?ParseMode $parse_mode=null, MessageEntity[]|null $caption_entities=null, ?bool $show_caption_above_media=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
|
||||
* @method Message editMessageMedia(string $media, ?string $business_connection_id=null, null|string|int $chat_id=null, int $message_id=null, ?string $inline_message_id=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
|
||||
* @method Message|true editMessageLiveLocation(float $latitude, float $longitude, ?string $business_connection_id=null, int|string|null $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?int $live_period=null, ?float $horizontal_accuracy=null, ?int $heading=null, ?int $proximity_alert_radius=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
|
||||
* @method Message stopMessageLiveLocation(?string $business_connection_id=null, int|string|null $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
|
||||
* @method Message editMessageReplyMarkup(?string $business_connection_id=null, int|string|null $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
|
||||
* @method Poll stopPoll(int|string $chat_id, int $message_id, ?string $business_connection_id=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
|
||||
* @method true deleteMessage(int|string $chat_id, int $message_id) Use this method to delete a message, including service messages. Returns True on success.
|
||||
* @method true deleteMessages(int|string $chat_id, int[] $message_ids) Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success.
|
||||
* @throws TelegramException if the method execution fails.
|
||||
*/
|
||||
class Bot
|
||||
|
|
Loading…
Add table
Reference in a new issue