irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3.04k stars 671 forks source link

Add "deleteMessages" method #1138

Open voidvn opened 2 months ago

voidvn commented 2 months ago

PHP version

8.3

irazasyed/telegram-bot-sdk version

versions : * v3.14.0

Laravel version (if any)

versions : * v11.15.0

Code To Reproduce the bug

Telegram::deleteMessages([ 'chat_id' => 1, 'message_ids' => [55,44,22] ]);

Error stacktrace (if any)

No response

voidvn commented 2 months ago

There is no implementation for telegram api method to delete multiple messages -"deleteMessages" (https://core.telegram.org/bots/api#deletemessages)

So please add this method to the Laravel facade