Support self-hosted Bot API servers
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 toNonZeroU32
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).