Skip to content

Support self-hosted Bot API servers

Artem Starikov requested to merge support-self-hosted-bot-api into master

This MR:

  • adds support for custom server URIs to allow self-hosted Bot API servers, set with bot::Builder::server_uri;
  • adds the bot::Builder::{log_out,close,delete_webhook} methods for migration;
  • changes the max_connection's type from u8 to NonZeroU32 to allow up to 100 000 concurrent connections (and disallow 0).

As a side-effect, the bot module is now public in order to re-export Uri which is used in bot::Builder::server_uri and also fixes WebhookInfo deserialization when there are unknown fields.

Part of #59 (closed).

Merge request reports