Temirkhan Myrzamadi
34255d9f0b
Merge pull request #37 from teloxide/update_deps
...
update deps
2021-01-07 20:55:25 +06:00
Waffle
56d546215a
fix clippy: impl From instead of Into
2021-01-07 16:01:46 +03:00
Waffle
71d90002ce
update dependencies
2021-01-07 15:58:51 +03:00
Waffle Lapkin
8f3bb9d96b
Merge pull request #35 from teloxide/custom_url
...
Add `Bot::{set_,}api_url` methods
2020-12-30 17:42:43 +03:00
Waffle
6004d9189c
fmt
2020-12-30 17:06:52 +03:00
Waffle Lapkin
114d1c3efb
Update src/bot/mod.rs
...
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-12-30 17:03:29 +03:00
Waffle
cf3cd63c92
fix doc tests
2020-12-28 21:03:33 +03:00
Waffle
50d3d67f93
fmt
2020-12-28 19:06:46 +03:00
Waffle
f4e3aa13eb
Add Bot::{set_,}api_url
methods
...
The methods allow to set and get the Telegram bot API url.
2020-12-28 18:45:45 +03:00
Waffle
9052d4dfbb
Remove already fixed FIXMEs
2020-12-28 18:02:04 +03:00
Temirkhan Myrzamadi
42d4c7693a
Merge pull request #34 from teloxide/tgapi_typos
...
Fix API typos
2020-12-28 18:26:15 +06:00
Waffle
93bc2e6fee
Make requester methods doc nicer
2020-12-28 14:57:39 +03:00
Waffle
7cc79eda63
Fix API typos
...
- Make `caption` args optional
- Add missing game methods
2020-12-28 14:57:37 +03:00
Temirkhan Myrzamadi
7592442624
Merge pull request #32 from teloxide/docs-gardening
...
Documentation gardening
2020-12-24 02:54:21 +06:00
Temirkhan Myrzamadi
109a5d89ab
Satisfy rustfmt
2020-12-23 23:45:56 +06:00
Temirkhan Myrzamadi
957c997161
Merge branch 'docs-gardening' of https://github.com/teloxide/teloxide-core into docs-gardening
2020-12-23 23:41:27 +06:00
Temirkhan Myrzamadi
1188da84e3
Small typo fixes
2020-12-23 23:40:58 +06:00
Temirkhan Myrzamadi
edc12d0008
Update src/requests/payload.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-12-23 23:18:20 +06:00
Temirkhan Myrzamadi
f1e5f3f1b3
Update src/requests/request.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-12-23 23:16:49 +06:00
Temirkhan Myrzamadi
bb8148a3b3
Update src/requests/request.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-12-23 23:16:42 +06:00
Temirkhan Myrzamadi
18c34a7f70
Update src/requests/payload.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-12-23 23:16:19 +06:00
Temirkhan Myrzamadi
dc7092fed5
Update src/requests/has_payload.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-12-23 23:14:58 +06:00
Temirkhan Myrzamadi
914ddd40bb
Add #[allow(clippy::wrong_self_convention)]
2020-12-23 22:46:31 +06:00
Temirkhan Myrzamadi
f5d9cb1a73
Documentation gardening
2020-12-23 22:24:31 +06:00
Waffle Lapkin
e260f11558
Merge pull request #31 from teloxide/fixnetlifydocbuild
...
Fix netlify docs build
2020-12-13 14:42:47 +03:00
Waffle
08cefc379b
Fix netlify docs build
2020-12-12 19:27:54 +03:00
Waffle Lapkin
bb9b2fb8b5
Merge pull request #30 from teloxide/requester_download
...
Refactor file downloading
2020-12-12 19:23:01 +03:00
Waffle
290258cd1f
Small fixes: fmt & import in test
2020-12-12 17:59:45 +03:00
Waffle
445c42b585
Refactor file downloading
...
- Make `net` module public
- Move `Bot::download_file{,_stream}` methods to a new `Download` trait
- Add `download_forward` macro to forward `Download` impls (priv)
- Impl `Download` for all bot adaptors & the `Bot` itself
- Change return type of `download_file_stream` — return `Stream<Result<Bytes>>``,
instead of `Future<Result<Stream<Result<Bytes>>>>``
- Add `api_url` param to standalone versions of `download_file{,_stream}`
- Make `net::{TELEGRAM_API_URL, download_file{,_stream}}` pub
- Small documentation changes
2020-12-12 15:52:47 +03:00
Waffle Lapkin
91015b7b3f
Merge pull request #28 from teloxide/rm_rf_legacy
...
Remove legacy code
2020-12-06 17:36:51 +03:00
Waffle
3491a668b2
Fix doc links...
2020-12-06 16:34:44 +03:00
Waffle
1882ff0bc4
Fix doc test
2020-12-06 16:31:30 +03:00
Waffle
84ac0212e8
Remove legacy code
2020-12-06 16:31:28 +03:00
Temirkhan Myrzamadi
6b2ac7142a
Merge pull request #29 from teloxide/bot_refactor
...
Refactor Bot for a bit
2020-12-05 05:10:43 +06:00
Waffle
eb45ac7d88
Fix doc links
2020-11-27 01:39:35 +03:00
Waffle
45cf62ce8e
Refactor Bot for a bit
...
- Move default parse mode to an adaptor
- Remove bot builder (it's not usefull anymore, since parse_mode is moved away)
- Undeprecate bot constructors
2020-11-27 01:21:50 +03:00
Temirkhan Myrzamadi
df7aac88a9
Merge pull request #27 from teloxide/requester_add_all_methods
...
Add all tba methods to Requester trait
2020-11-24 23:55:25 +06:00
Waffle
7c9c871b83
Remove empty generics lists, where
s and ', ' after self
2020-11-24 20:30:45 +03:00
Waffle
d7d8bc6246
Add all tba methods to Requester trait
2020-11-24 19:32:29 +03:00
Temirkhan Myrzamadi
b4e0a355c3
Merge pull request #26 from teloxide/intrl_api_url_chage
...
Add internal ability to change API url
2020-11-21 04:01:28 +06:00
Waffle
05582de2fd
Add fixme to #[allow] attr in api_url
2020-11-17 22:43:34 +03:00
Waffle
17b44db578
Add ApiUrl
...
Add `ApiUrl` and also use `Url` instead of `&str` for urls to clean code
2020-11-17 22:38:30 +03:00
Temirkhan Myrzamadi
8714e99fdd
Merge pull request #25 from teloxide/payloads
...
Implement all payloads
2020-11-17 19:46:03 +06:00
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
Waffle
19c375f5e0
fix message_id type
2020-11-16 12:58:55 +03:00
Waffle
40bbfb05ea
fixup SendInvice::chat_id type
2020-11-16 02:48:24 +03:00
Waffle
5d576455d9
fix user_id param type
2020-11-15 11:24:38 +03:00
Waffle Lapkin
79b5c41bb5
Apply suggestions from code review
...
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-11-15 10:51:36 +03:00
Waffle
62b65cb7a6
clippy
2020-11-13 20:47:47 +03:00
Waffle
f0609c06bc
Add docs for setters mod
2020-11-13 19:15:09 +03:00