elbekD / kt-telegram-bot

Telegram Bot Library for Kotlin language
MIT License
103 stars 19 forks source link

deleteMessage #17

Closed ghost closed 4 years ago

ghost commented 4 years ago

Is your feature request related to a problem? Please describe. While creating a moderation bot, it would be useful to delete previous welcome messages to keep the group history clean.

Describe the solution you'd like https://core.telegram.org/bots/api#deletemessage Implementing this API would allow a bot to delete its own historical and potentially lengthy messages.

Describe alternatives you've considered editmessage allows to shorten old messages significantly and makes a good workaround for the moment.

elbekD commented 4 years ago

@mimithebrain thnx for issue. checkout version 1.2.1

ghost commented 4 years ago

Integrated, unit tests pass, and works great!

Thanks again!