Repository navigation
v1.2.0
Fixes from running the examples against the real API.
Added
MaxBot.deleteWebhook()(anddeleteWebhookBlocking()) removes every webhook subscription of
the bot.
Fixed
MessageContext.textisnullfor photos, stickers and other messages without text. Max sends an
empty string for them, sotext ?: "..."replied with an empty message (rejected with
400 proto.payload) andFilters.hasText()let such messages through.- Long polling no longer receives nothing while the bot is subscribed to a webhook: Max answers
getUpdateswith empty pages then, sostartPolling()now checks the subscriptions first and
throwsMaxException, as documented. sendMessagerejects a message without text, attachments or a forwarded message with
IllegalArgumentExceptioninstead of sending it and getting400 proto.payload: errors.required.- The Ktor example unsubscribes from the webhook when it stops and logs through
slf4j-simple. - The echo examples change the message on "Like" too, since the web client of Max does not show
callback notifications.
Changed
- Documented that the web client of Max shows neither the command menu nor callback notifications.