Commit graph

2208 commits

Author SHA1 Message Date
Hirrolot
5c69117a38 Update teloxide-core to v0.3.3 2021-08-05 17:44:47 +06:00
Hirrolot
a35667ac2b Prepare for v0.5.1 2021-08-01 20:45:59 +06:00
Hirrolot
0fce577c10
Merge pull request #420 from teloxide/better_ctrlc_messages
Improve log messages when `^C` is received with `^C` handler setted up
2021-07-24 01:55:55 -07: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
58d87437ba
Merge pull request #411 from teloxide/v0.5.0
Prepare for v0.5.0
2021-07-08 02:56:45 -07:00
Hirrolot
cdfadb3517
Update README.md
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-07-08 02:43:40 -07:00
Hirrolot
72e9821b15
Add the asynchronous category to Cargo.toml 2021-07-08 15:31:35 +06:00
Hirrolot
3e59041f9b
Italicise the migration guide link (README.md) 2021-07-08 15:26:49 +06:00
Hirrolot
f85c771590 Point to the migration guide from README.md 2021-07-08 15:24:55 +06:00
Hirrolot
674b1f974a Prepare for v0.5.0 2021-07-08 15:22:13 +06:00
Hirrolot
3690a74e41
Merge pull request #410 from teloxide/migration_guide
migration guide
2021-07-08 01:56:45 -07:00
Waffle
bb0d313003 Add migration guide 2021-07-08 02:21:12 +03:00
Hirrolot
6d45367314
Merge pull request #409 from teloxide/docs-core-supported-on-feature-x-fix-now-docs-are-better-but-im-still-lonely
Show `This is supported on feature="..." only.` in docs of reexported teloxide-core items
2021-07-07 12:04:40 -07:00
Waffle
6698633023 fix netlify config 2021-07-07 20:55:55 +03:00
Waffle
81775a7217 Show "This is supported on feature="..." only." in socs of reexported teloxide-core items 2021-07-07 20:27:38 +03:00
Hirrolot
d9e91c93e5
Merge pull request #408 from teloxide/update_deps
Update dependencies
2021-07-07 09:46:07 -07:00
Waffle
18f88cc034 Update dialogue_bot example 2021-07-06 23:15:12 +03:00
Waffle
183486a044 Update heroku and ngrok examples 2021-07-06 15:10:22 +03:00
Waffle
30644ab162 Update admin_bot example 2021-07-05 22:16:29 +03:00
Waffle
369e43aa7e Update dependencies 2021-07-05 21:29:36 +03:00
Hirrolot
a699aad923
Merge pull request #405 from dracarys18/dev
utils: Change the user_id type to i64
2021-07-04 05:52:08 -07:00
Waffle Lapkin
f69abcc938
Update CHANGELOG.md 2021-07-04 10:29:46 +03:00
dracarys18
4c480a1714 Merge github.com:teloxide/teloxide into dev 2021-07-04 09:17:41 +05:30
Hirrolot
e0f9aec84b
Merge pull request #406 from teloxide/clippy_ignore_braces
Ignore buggy nonstandard_macro_braces clippy lint
2021-07-04 07:26:00 +06:00
Waffle
39e0ee094a Ignore buggy nonstandard_macro_braces clippy lint 2021-07-04 00:22:11 +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
Hirrolot
e40d0e7edf
Merge pull request #404 from dracarys18/dev
Add reply shortcuts for every kind of message
2021-06-30 20:22:39 +06:00
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
dracarys18
6bb18ea40b Add reply shortcuts for every kind of message
Signed-off-by: dracarys18 <karthihegde010@gmail.com>
2021-06-30 17:59:07 +05:30
Hirrolot
01d1c8c95b
Merge pull request #403 from teloxide/hint_allowed_updates
Implement automatic update filtering
2021-06-27 18:56:48 +06:00
Waffle
7859294ff6 Apply suggestion from the review 2021-06-27 15:52:23 +03:00
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
3441ef46c0
Merge pull request #385 from teloxide/graceful_shutdown
Graceful shutdown & co
2021-06-27 16:41:44 +06:00
Hirrolot
c5ac8b5f9c Emit graceful shutdown info in all cases 2021-06-27 16:36:36 +06:00
Hirrolot
a6c480930a Print info about graceful shutdown to users 2021-06-27 15:44:46 +06:00
Hirrolot
afe5a9716b Enhance the docs 2021-06-27 14:57:02 +06:00
Waffle
8796bc11ba Update changelog 2021-06-27 11:04:55 +03:00
Waffle
558e7d5a72 Add IdleShutdownError 2021-06-27 10:50:47 +03:00
Waffle
0347f9e627 Replace ShutdownError with () 2021-06-26 23:21:44 +03:00
Waffle
483e544223 Apply suggestions from the review: rename AtomicShutdownState => DispatcherState, IsntRunning => Idle 2021-06-26 23:04:36 +03:00
Waffle
1795cb22c2 setup ^C handler in repls 2021-06-26 17:19:56 +03:00
Waffle
49848abd61 Doc fixes 2021-06-26 15:33:33 +03:00
Waffle
8e3ef4ab67 Minor Dispatcher cleanup 2021-06-26 15:08:32 +03:00
Waffle
7cfb207b44 Wait for handlers to finish before shutting down dispatcher
This commit makes `Dispatcher::dispatch_with_listener` (and all it's derivatives
like `Dispatcher::dispatch`, `teloxide::repl`) to wait for handlers to finish
berfore shutting down.

This commit also changes self-type for `Dispatcher::dispatch_with_listener` and
`Dispatcher::dispatch` from `&Self` to `&mut Self` (this is required to wait
for handlers to finish).

Since unique reference is now required for listening,`Dispatcher::shutdown`
function is removed.
2021-06-26 14:33:10 +03:00
Waffle
569ef222fc Add dispatcher shutdown token
This commit adds `ShutdownToken` which can be obrained throught
`Dispatcher::shutdown_token` and then later be used to shutdown dispatching.
2021-06-25 17:41:02 +03:00
Waffle
c378d6ef4e Make StatefulListener::new a little more convinient
Remove `timeout_hint` from the `StatefulListener::new` function. This parameter
is confusing and is likely to be set to `None` in most cases.

Add a `StatefulListener::new_with_timeout_hint` parameter which is the same as
the old `StatefulListener::new`.
2021-06-25 17:24:31 +03:00
Waffle
76dee997e0 Fix webhook examples (support graceful shutdown) 2021-06-25 16:57:24 +03:00
Waffle
8785b8263c Fix overflow in dispatch_with_listener 2021-06-25 16:57:24 +03:00
Waffle
f58ae9b9ca Make StatefulListener pub 2021-06-25 16:57:24 +03:00