🤖 An elegant Telegram bots framework for Rust https://docs.rs/teloxide
Find a file
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
.github/workflows Initial commit 2020-08-12 18:04:50 +03:00
src Add internal ability to change API url 2020-11-16 14:14:00 +03:00
.gitignore Initial commit 2020-08-12 18:04:50 +03:00
Cargo.toml Move bot adaptors to own module and place then under features 2020-10-21 05:14:48 +03:00
CHANGELOG.md Rename StickerType 2020-11-04 16:00:40 +03:00
LICENSE Initial commit 2020-08-06 16:40:41 +03:00
netlify.toml Initial commit 2020-08-12 18:04:50 +03:00
README.md Add badges to readme 2020-08-12 20:17:26 +03:00
rustfmt.toml Move core code from teloxide 2020-08-12 19:39:40 +03:00

teloxide-core

CI status documentation (master) LICENSE

Core part of teloxide library.