Waffle
9f5a222ed7
Add UpdateListener::timeout_hint
2021-06-25 16:57:24 +03:00
Waffle
c288a540b9
Store fetched updates in polling::State
...
This way updates aren't lost when the stream is dropped.
2021-06-25 16:57:24 +03:00
Waffle
aeca45a579
Refactor UpdateListner
trait
...
Instead of `Stream` super trait we now require `for<'a> AsUpdateStream<'a, E'>`
as a super trait. `AsUpdateStream` in turn provides `as_stream` function which
takes `&mut self` and returns `Self::Stream` (the trait is needed to workaround
lack of GAT).
This patch also adds a `stop` function that allows stopping the listener.
Since `UpdateListner` now isn't `Stream` and required methods, it's blanked
implementation for streams was removed.
`polling` and `polling_default` functions now also require `R: 'static`.
2021-06-25 16:57:24 +03:00
Hirrolot
59e5d385e7
Merge pull request #401 from dracarys18/dev
...
add community bot: dracary18/grpmr-rs
2021-06-22 13:20:27 +06:00
dracarys18
d97dfa3058
add community bot: dracary18/grpmr-rs
...
Signed-off-by: dracarys18 <karthihegde010@gmail.com>
2021-06-22 11:37:07 +05:30
Hirrolot
ab6c76650a
Merge pull request #400 from teloxide/remove-lockfree-dep
...
Replace `lockfree` with `flurry`
2021-06-18 22:21:53 +06:00
Hirrolot
0f857e944b
feature = "nightly"
=> all(docsrs, feature = "nightly")
2021-06-18 22:17:08 +06:00
Hirrolot
6a7ad31fc9
Place the comment above feature(doc_cfg)
2021-06-18 22:07:37 +06:00
Hirrolot
74348b7236
Remove feature(external_doc)
completely
2021-06-18 21:44:10 +06:00
Hirrolot
fb0b267b94
Fix the removed feature external_doc
2021-06-18 21:35:54 +06:00
Hirrolot
f4260ed078
Replace lockfree
with flurry
2021-06-18 20:53:03 +06:00
Hirrolot
83e1247905
Merge pull request #390 from Askannz/patch-1
...
README: enable the "macros" feature in the quickstart Cargo.toml
2021-05-29 17:43:08 +06:00
Robin Lange
e3a3c1ed50
README: enable the "macros" feature in the quickstart Cargo.toml
...
The "commands" example later in the README does not compile without it.
2021-05-29 16:48:00 +10:00
Waffle Lapkin
49a0e54957
Merge pull request #388 from teloxide/more-community-bots
...
Add more community bots
2021-05-25 07:13:33 +03:00
Hirrolot
86515b13ed
Add more community bots
2021-05-25 09:00:52 +06:00
Hirrolot
051a3ba671
Merge pull request #387 from teloxide/simplify-simple-commands-bot-send
...
Don't use `.send()` in `examples/simple_commands_bot`
2021-05-20 22:00:03 +06:00
Hirrolot
1d5859507a
Remove feature(extended_key_value_attributes)
2021-05-20 21:54:41 +06:00
Hirrolot
c3bcdca549
Don't use .send()
in examples/simple_commands_bot
2021-05-20 21:37:53 +06:00
Waffle Lapkin
9d243b50c8
Merge pull request #386 from teloxide/default-tls
...
Enable TLS by default
2021-05-19 09:47:17 +03:00
Waffle
0eef5b8487
Enable TLS by default
...
We use HTTPS which doesn't work without TLS implementation.
2021-05-18 18:52:29 +03:00
Hirrolot
e351a6695b
Merge pull request #383 from teloxide/norm_docs3
...
Normalize docs (take 3)
2021-05-16 08:33:38 +06:00
Waffle
02a4df4b5c
Switch to developement teloxide-core version
2021-05-15 23:37:14 +03:00
Waffle
9b34586a04
Normalize docs
2021-05-15 23:37:14 +03:00
Hirrolot
509a93536c
Merge pull request #382 from teloxide/fix-command-off-docs
...
Document the `"off"` value as a command description
2021-05-09 23:18:51 -07:00
Temirkhan Myrzamadi
c0e3064785
Fmt
2021-05-10 12:13:07 +06:00
Hirrolot
7f578a8918
Paraphrase src/utils/command.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-05-09 23:06:35 -07:00
Temirkhan Myrzamadi
cf3639f68b
Document the "off" value as a command description
2021-05-10 08:55:43 +06:00
Hirrolot
d8d3044efa
Merge pull request #369 from teloxide/fix-remove-dialogue-sqlite
...
Try to remove a dialogue in `Storage::remove_dialogue` even if it does not exist
2021-05-08 06:39:48 -07:00
Waffle Lapkin
f911ab9974
Remove duplicate from README
2021-05-08 16:31:19 +03:00
Temirkhan Myrzamadi
3b7ca4dabd
Merge
2021-05-08 19:02:35 +06:00
Temirkhan Myrzamadi
27eda5759c
RowNotFound -> DialogueNotFound
2021-05-08 19:00:38 +06:00
Hirrolot
de52ea25f9
Update src/dispatching/dialogue/storage/mod.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-05-08 05:43:34 -07:00
Hirrolot
80e1afaeed
Update src/dispatching/dialogue/storage/in_mem_storage.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-05-08 05:43:27 -07:00
Temirkhan Myrzamadi
d14e0a49e9
Merge branch 'fix-remove-dialogue-sqlite' of https://github.com/teloxide/teloxide into fix-remove-dialogue-sqlite
2021-05-08 18:41:53 +06:00
Temirkhan Myrzamadi
cb02b83520
Apply review suggestions
2021-05-08 18:41:34 +06:00
Hirrolot
94e61d3403
Refactor src/dispatching/dialogue/storage/redis_storage.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-05-08 05:39:18 -07:00
Temirkhan Myrzamadi
5585143ac2
Don't capitalise letters after dashes
2021-05-08 18:21:11 +06:00
Temirkhan Myrzamadi
03837c66f2
Revert the previous ports in tests/redis.rs
2021-05-08 17:44:22 +06:00
Temirkhan Myrzamadi
721feb0082
Fix the tests
2021-05-08 17:38:03 +06:00
Temirkhan Myrzamadi
58c8015e78
Re-export InMemStorageError unconditionally
2021-05-08 17:25:53 +06:00
Temirkhan Myrzamadi
08bf40e555
Fail Storage::remove_dialogue if a dialogue doesn't exist
2021-05-08 17:21:24 +06:00
Hirrolot
b889ae6f13
Merge pull request #376 from teloxide/WaffleLapkin-patch-1
...
Point users to discussions
2021-04-28 09:51:45 -07:00
Hirrolot
8f53e5e8d6
Merge pull request #375 from teloxide/issue-template-change-labels
...
Update issue templates
2021-04-28 09:51:24 -07:00
Waffle Lapkin
42dbd7b423
Point users to discussions
2021-04-27 19:22:39 +03:00
Waffle Lapkin
6352698655
Update issue templates
...
Change labels for `Parse error` and `Unknown telegram error` templates
2021-04-27 19:10:24 +03:00
Temirkhan Myrzamadi
ef8c8f4cb5
Revert CHANGELOG.md
...
This fix affects only the current dev branch.
2021-04-22 05:45:05 +06:00
Temirkhan Myrzamadi
9e0de46918
Always remove a dialogue in SqliteStorage::remove_dialogue
2021-04-22 05:42:05 +06:00
Hirrolot
8d8041ad6d
Merge pull request #365 from teloxide/move-features-to-docs
...
Move the features section to `lib.rs`
2021-04-05 09:46:25 -07:00
Temirkhan Myrzamadi
17d14d2d53
Yet another dirty hack to please rustfmt
2021-04-05 21:19:29 +06:00
Temirkhan Myrzamadi
bc9972bdf2
Move the features section to lib.rs
2021-04-05 19:48:56 +06:00