teloxide/src
Waffle fa0e86c547 Add internal ability to change API url
Recently, telegram has published [Telegram Bot API Server] - HTTP API <->
MTPROTO proxy which is used internally by telegram. Now it's possible to run
the server locally.

However currently it's not possible to use teloxide with such local server,
because API url is hardcoded into teloxide.

This commit makes _internall_ changes to allow setting the API url. It doesn't
yet allow to set the url from user code (i.e.: no changes in public API), in my
opinion such additions are blocked on some bot refactorings.

`Bot::api_url` is made `Option<Arc<str>>` to minimize costs in case of 'default
url' (probably the most common case).

Progress of this issue is tracked in https://github.com/teloxide/teloxide/issues/317

[Telegram Bot API Server]: https://github.com/tdlib/telegram-bot-api
2020-11-16 14:14:00 +03:00
..
adaptors fmt 2020-10-21 19:53:39 +03:00
bot Add internal ability to change API url 2020-11-16 14:14:00 +03:00
net Add internal ability to change API url 2020-11-16 14:14:00 +03:00
payloads add internal impl_payload macro 2020-10-24 09:13:11 +03:00
requests fmt 2020-11-05 03:22:23 +03:00
serde_multipart implement default Bot's {Json,Multipart}Request 2020-09-19 20:30:36 +03:00
types fix docs for InputSticker 2020-11-05 03:25:32 +03:00
adaptors.rs doc & feature fixes 2020-10-21 05:17:35 +03:00
errors.rs Use #[serde(field_identifier)] instead of hand-made workarounds 2020-10-22 00:42:06 +03:00
lib.rs doc & feature fixes 2020-10-21 05:17:35 +03:00
local_macros.rs add #[must_use] attr to payloads implemented by macro 2020-11-02 21:14:32 +03:00
prelude.rs doc & feature fixes 2020-10-21 05:17:35 +03:00