unreal4u / telegram-api

Complete async capable Telegram bot API implementation for PHP7
https://github.com/unreal4u/telegram-api/wiki
MIT License
790 stars 174 forks source link

is there a way to delete a message in group chat? #106

Closed jkyngan closed 5 years ago

jkyngan commented 5 years ago

i noticed there is DeleteMessageAsync method in the telegram official api. is there a way to call it in the php bot?

unreal4u commented 5 years ago

I'm not able to find it here: https://core.telegram.org/bots/api

However, to delete messages, you can do so by calling up DeleteMessage: https://github.com/unreal4u/telegram-api/blob/master/src/Telegram/Methods/DeleteMessage.php

It requires only a chat_id and a message_id and you can call it however you want, async or sync.

Greetings.

unreal4u commented 5 years ago

Because there hasn't been any activity on this ticket, I'll close it. Feel free to reopen it if you need it 👍