Commit graph

1326 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
27eda5759c RowNotFound -> DialogueNotFound 2021-05-08 19:00:38 +06: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
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
Temirkhan Myrzamadi
9e0de46918 Always remove a dialogue in SqliteStorage::remove_dialogue 2021-04-22 05:42:05 +06: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
Temirkhan Myrzamadi
bf8d2fa51b Paraphrase #[must_use] 2021-04-03 14:21:06 +06:00
Temirkhan Myrzamadi
44956a4f85 Add descriptions of #[must_use] in Storage 2021-04-03 13:28:26 +06:00
Temirkhan Myrzamadi
617c861d26 Mark all the functions of Storage as #[must_use] 2021-04-03 06:53:02 +06:00
Temirkhan Myrzamadi
fff0b670fb Fix RedisStorage::update_dialogue 2021-03-29 12:20:17 +06:00
Hirrolot
ca60e52f43
Update src/dispatching/dialogue/storage/redis_storage.rs
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-03-28 22:18:47 -07:00
Hirrolot
75a36feca5
Merge branch 'dev' into fix-storage-persistency 2021-03-28 03:36:03 -07:00
Temirkhan Myrzamadi
68135d004f ToOwned<Owned = D> -> D: Clone 2021-03-28 16:30:12 +06:00
Temirkhan Myrzamadi
b7e2f14307 Automatically delete a webhook if it was set up 2021-03-28 08:51:57 +06:00
Temirkhan Myrzamadi
9b75378572 Fix the tests and examples 2021-03-28 08:20:35 +06:00
Temirkhan Myrzamadi
01b7b91bda Document how Storage failures are handled in DialogueDispatcher 2021-03-28 06:30:35 +06:00
Temirkhan Myrzamadi
abbbc41892 Fix RedisStorage, SqliteStorage 2021-03-28 06:20:13 +06:00
Temirkhan Myrzamadi
bf1ed601ac Fix the storage persistency bug 2021-03-28 05:34:25 +06:00
Temirkhan Myrzamadi
580dfaeae6 Merge branch 'dev' into clarify-storage-purpose 2021-03-22 01:35:14 +06:00
Waffle Lapkin
101528e453
Resolve fixme (#350)
* Update redis

* Resolve fixme(waffle) related to building docs

* Fix broken links

* Reexport teloxide_core::prelude as `no_inline`
2021-03-22 00:43:19 +06:00
Hirrolot
8522759e68
Get ready for v0.4.0 (#347)
* Get ready for v0.4.0

* Export teloxide_macros as macros in lib.rs

* Use tokio v1.3 in README.md

* Return the feature 'macros' back

* Export teloxide_macros::teloxide in the prelude

* Document the 'macros' feature in README.md

* Update src/lib.rs

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

* Update src/prelude.rs

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

* Propagate features from teloxide-core

* teloxide-core = 0.2.1

* Fix CI

* Require teloxide-core/auto_send instead of teloxide/auto-send

* default-features = false (teloxide-core)

* Specify each teloxide-core feature separately

* Fix Cargo.toml

* JSON -> Json, CBOR -> Cbor

* Update Cargo.toml

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-03-21 18:34:23 +06:00
Hirrolot
68e3c5e089
Update src/prelude.rs
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-03-20 22:57:32 +06:00
Temirkhan Myrzamadi
86253edc92 Use Box<dyn Error + Send + Sync> in the examples 2021-03-19 17:58:22 +06:00
Temirkhan Myrzamadi
be7bec6fa9 Support UpdateKind::{MyChatMember, ChatMember} 2021-03-17 23:36:51 +06:00
Hirrolot
31e6fba58c
Update src/lib.rs
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-03-15 20:26:50 +06:00
Temirkhan Myrzamadi
62b979369f Fix the doc tests 2021-03-15 20:21:50 +06:00
Temirkhan Myrzamadi
823f279a60 Fix the docs 2021-03-15 09:51:00 +06:00
Temirkhan Myrzamadi
34a2eee1fa Apply review suggestions 2021-03-15 09:22:32 +06:00
Temirkhan Myrzamadi
36b314cdfc Fix this fucking bullshit 2021-03-13 23:35:48 +06:00
Temirkhan Myrzamadi
b29ef34299 Fmt 2021-03-13 23:08:35 +06:00
Temirkhan Myrzamadi
5f96da0a5f Fix the tests 2021-03-13 23:05:50 +06:00
Temirkhan Myrzamadi
1af0bfdcbc Fix the examples 2021-03-13 22:13:24 +06:00
Temirkhan Myrzamadi
a6e0c48427 Fix the tests 2021-03-06 03:50:11 +06:00
Temirkhan Myrzamadi
6102a02ed4 Integrate teloxide-core 2021-03-06 03:18:03 +06:00
Temirkhan Myrzamadi
f33428be03 Update the dependencies 2021-02-22 08:14:33 +06:00
Waffle Lapkin
2a8f091495
fix fmt 2021-01-13 16:24:23 +03:00
Waffle Lapkin
dbc03c0769
Merge branch 'dev' into fix-serde-export-master 2021-01-13 16:20:25 +03:00
Temirkhan Myrzamadi
086789e5ca serde::export -> std::fmt 2021-01-13 11:31:08 +06:00
Temirkhan Myrzamadi
0e5880af91 Clarify the purpose of Storage in the docs 2021-01-12 19:42:33 +06:00
ivan770
704418ca9f Remove unnecessary allocation if trace level is not enabled 2020-11-19 16:54:46 +00:00
ivan770
aebb974e50
Use only one log message to nofity about dialogue transition 2020-11-18 14:04:12 +02:00
ivan770
cd2970c0f5
fmt 2020-11-18 10:19:21 +02:00
ivan770
f6a4882d1d
State that log crate is being used for logging 2020-11-18 10:09:54 +02:00
ivan770
f86217b0f9
Trace previous state on update 2020-11-18 09:56:57 +02:00
ivan770
5830ba2b32
Minor changes
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2020-11-18 09:33:45 +02:00