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.
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 likeFuture[(bool, Option[Message])]
, I went forFuture[Option(Message)]
. If they fail, they're going to raise an exception anyway, so including thetrue
seems unnecessary. I also editededitMessageMedia
to reflect this, so it now returnsOption[Message]
instead ofbool
.I upped the version number to 0.5.0 since this is a breaking change.