Commit graph

72 commits

Author SHA1 Message Date
Hirrolot
2a6067fe94 Prepare for v0.5.2 2021-08-25 23:51:19 +06:00
Waffle
5e260d0afc Depend on a right futures version 2021-08-25 18:12:14 +03:00
Hirrolot
2ae7c10fc7 Update the v0.5.1 release date 2021-08-05 23:10:40 +06:00
Hirrolot
a35667ac2b Prepare for v0.5.1 2021-08-01 20:45:59 +06:00
Waffle
b984464a79 Improve log messages when ^C is received with ^C handler setted up
Now they tell the user to not repeatedly press `^C` since only the first
signal actually does anything, all subsequesnt ones are ignored.
2021-07-21 15:53:52 +03:00
Hirrolot
674b1f974a Prepare for v0.5.0 2021-07-08 15:22:13 +06:00
Waffle
369e43aa7e Update dependencies 2021-07-05 21:29:36 +03:00
Waffle Lapkin
f69abcc938
Update CHANGELOG.md 2021-07-04 10:29:46 +03:00
dracarys18
1f1a3abd6b utils: Change the user_id type to i64
user_id is of type i64 in User struct (bd104a0a08/src/types/user.rs (L10))

Signed-off-by: dracarys18 <karthihegde010@gmail.com>
2021-07-03 17:31:57 +05:30
Kartikeya Hegde
0a89f46702
Update CHANGELOG.md
Co-authored-by: Hirrolot <hirrolot@gmail.com>
2021-06-30 19:47:43 +05:30
dracarys18
9476636d73 Update changelog 2021-06-30 19:44:12 +05:30
Waffle
faef0c6ffb Implement automatic update filtering
Add `UpdateListener::hint_allowed_updates` and `StatefulListener::hint_allowed_updates`.

Make `Dispatcher` call `UpdateListener::hint_allowed_updates` when starting dispatching.
2021-06-27 15:07:21 +03:00
Hirrolot
a6c480930a Print info about graceful shutdown to users 2021-06-27 15:44:46 +06:00
Waffle
8796bc11ba Update changelog 2021-06-27 11:04:55 +03:00
Waffle
f0de55ad55 Add Dispatcher::setup_ctrlc_handler function.
This function sets up `^C` handler which shuts down dispatching.
2021-06-25 16:57:24 +03:00
Waffle
41a95079b2 Add Dispatcher::shutdown function
This function allows to gracefuly shutdown dispatching.
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
Waffle Lapkin
f911ab9974
Remove duplicate from README 2021-05-08 16:31:19 +03:00
Temirkhan Myrzamadi
27eda5759c RowNotFound -> DialogueNotFound 2021-05-08 19:00:38 +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
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
Temirkhan Myrzamadi
617c861d26 Mark all the functions of Storage as #[must_use] 2021-04-03 06:53:02 +06:00
Hirrolot
701dcbcb68 Amalgamate 'Fixed' sections in CHANGELOG.md 2021-03-28 16:39:11 +06: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
eac67af27a Update CHANGELOG.md 2021-03-28 08:30:05 +06:00
Temirkhan Myrzamadi
9b75378572 Fix the tests and examples 2021-03-28 08:20:35 +06:00
Temirkhan Myrzamadi
bf1ed601ac Fix the storage persistency bug 2021-03-28 05:34:25 +06:00
Diego Roig
10a7dfb721 remove reqwest dependency 2021-03-26 18:33:36 -05:00
Hirrolot
63611cc7ae
Fix the v0.4.0 release date (CHANGELOG.md) 2021-03-22 01:28:50 +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
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
Temirkhan Myrzamadi
6102a02ed4 Integrate teloxide-core 2021-03-06 03:18:03 +06: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
Waffle Lapkin
89ae390dfe
Merge pull request #294 from teloxide/sqlite_storage
Sqlite storage v2
2020-11-04 12:01:21 +03:00
Temirkhan Myrzamadi
6e4b1ff2b3 Prepare for v0.3.3 2020-10-30 13:26:04 +06:00
Sergey Levitin
d0f727099c Update changelog 2020-10-24 20:08:00 +03:00
Temirkhan Myrzamadi
c40f15487a Fix conflicts in CHANGELOG.md 2020-10-23 09:02:00 +06:00
Waffle Lapkin
814adabdb6
Merge branch 'dev' into v0.3.1_release 2020-09-26 19:01:16 +03:00
Waffle
04f8ed5df7 v0.3.1 release 2020-08-25 17:45:16 +03:00
Waffle
2cdb200ccf update CHANGELOG.md with Bot::builder method 2020-08-21 14:35:14 +03:00
Waffle
b06d3e7b7e add edit-methods and TargetMessage refactoring changes to CHANGELOG.md 2020-08-10 18:36:43 +03:00
Temirkhan Myrzamadi
d7ad1f26ed
Update CHANGELOG.md 2020-08-02 13:16:53 +06:00
Temirkhan Myrzamadi
b98932437b
v0.3.0 CHANGELOG.md 2020-07-31 21:56:27 +06:00
Temirkhan Myrzamadi
6bb8482f3d Respect TELOXIDE_PROXY in Bot::from_env & BotBuilder 2020-07-31 21:34:48 +06:00
Temirkhan Myrzamadi
ba65a3371f Update CHANGELOG.md 2020-07-31 20:22:39 +06:00