Commit graph

1315 commits

Author SHA1 Message Date
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
ivan770
e9b7ad9161
Basic implementation of TraceStorage 2020-11-17 21:46:21 +02:00
Waffle Lapkin
89ae390dfe
Merge pull request #294 from teloxide/sqlite_storage
Sqlite storage v2
2020-11-04 12:01:21 +03:00
Temirkhan Myrzamadi
1c23bdd525
Merge pull request #309 from teloxide/master
v0.3.3 (very big changes)
2020-10-30 13:42:34 +06:00
Temirkhan Myrzamadi
edb5d6ffa0 Make MessageDice.dice public 2020-10-30 13:21:03 +06:00
Lachezar Lechev
508f34148b
replace occurences of docsrs and add FIXME 2020-10-26 12:12:06 +02:00
Lachezar Lechev
9ae81ac978
add doc(cfg) attributes 2020-10-25 17:55:04 +02:00
Sergey Levitin
32600ff8f6 Gardening + docs improvals 2020-10-25 11:50:47 +03:00
Sergey Levitin
633d5b0d64 Fix typo 2020-10-24 21:09:17 +03:00
Sergey Levitin
75c7899f2c Actualize storages docs 2020-10-24 21:08:14 +03:00
Sergey Levitin
d5b86ac086 Get rid of an unnesessary TODO 2020-10-24 19:59:08 +03:00
Sergey Levitin
7ba0a5b5a4 Fix SQL syntax error 2020-10-23 22:26:27 +03:00