ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

Add missing message editing endpoints #18

Closed zedeus closed 5 years ago

zedeus commented 5 years ago

Adds endpoints to edit and delete bot messages. The API will either return the edited message, or true if the message was sent inline via the bot. To avoid some messy type like Future[(bool, Option[Message])], I went for Future[Option(Message)]. If they fail, they're going to raise an exception anyway, so including the true seems unnecessary. I also edited editMessageMedia to reflect this, so it now returns Option[Message] instead of bool.

I upped the version number to 0.5.0 since this is a breaking change.

ba0f3 commented 5 years ago

thank you!