Hirrolot
d4fbaa74c4
Some tiny documentation tweaks
2022-02-03 16:38:54 +06:00
Hirrolot
d89eeb5847
Make setup_ctrlc_handler
return &mut Self
2022-02-03 12:48:02 +06:00
Hirrolot
45293e3168
Fix dialogue examples
2022-02-03 02:36:36 +06:00
Hirrolot
60df0a5cf8
Refactor Dialogue
...
Remove useless stuff, some cleanup, u know.
2022-02-02 15:25:23 +06:00
Hirrolot
d25efa9e14
Document UpdateHandler
, DefaultHandler
2022-02-02 05:00:45 +06:00
Hirrolot
5101786d0b
requester
=> bot
2022-02-02 04:55:12 +06:00
Hirrolot
21eb048ca2
Decouple Dispatcher
from DispatcherBuilder
2022-02-02 04:51:36 +06:00
Hirrolot
e92eef4a7c
Document some stuff
2022-01-31 19:23:47 +06:00
Hirrolot
2058395d54
Add Me
into the dependencies
2022-01-28 20:52:01 +06:00
Hirrolot
58311ef608
Add Update
& UpdateFilterExt
to prelude2
2022-01-26 15:51:43 +06:00
Hirrolot
b1fac57c94
Merge pull request #500 from teloxide/fix_stop_token_sendness
...
Fix `polling`'s `StopToken` not being `Send`
2022-01-26 12:34:32 +06:00
Maybe Waffle
e83688d4d3
Add toolchain file and fix formatting
2022-01-25 21:07:30 +03:00
Maybe Waffle
ea5eb16276
Clarify StatefulListener
docs a little
2022-01-25 20:38:59 +03:00
Maybe Waffle
755ec44aea
Cleanup update_listeners
docs
2022-01-25 20:25:19 +03:00
Hirrolot
cd51bba180
Refactor Dispatcher
2022-01-24 13:20:13 +06:00
Hirrolot
7d6c374828
Accept the handler as a parameter in Dispatcher::new
2022-01-23 20:58:55 +06:00
Hirrolot
ad88db96b6
Add UpdateFilterExt
2022-01-23 20:38:12 +06:00
Hirrolot
01c43dd360
Refactor MessageFilterExt
2022-01-23 20:15:27 +06:00
Maybe Waffle
a7182962f7
Fix polling
's StopToken
not being Send
2022-01-18 21:01:47 +03:00
Maybe Waffle
993e6e53aa
Do not retry get_updates
infinitely while stopping polling listener
2022-01-17 14:42:49 +03:00
Hirrolot
cc0e21c9f8
Remove Dispatcher::without_error_handler
2022-01-16 19:51:36 +06:00
Hirrolot
bacea51adc
Expose DefaultHandler
, UpdateHandler
out of dispatcher.rs
2022-01-16 19:50:39 +06:00
Hirrolot
2ad4e9a9f7
Define Dispatcher
handlers via a macro
2022-01-16 18:26:37 +06:00
p0lunin
1be9dd9a48
import MessageFilterExt in the prelude2.rs
2022-01-12 15:44:31 +02:00
p0lunin
3042dcada5
add Dispatcher::error_handler
2022-01-12 14:07:30 +02:00
p0lunin
bbd8f4d5ec
add MessageFilterExt
2022-01-12 14:07:18 +02:00
p0lunin
5fb673a87f
fix bug with callback_queries_handler
2022-01-12 12:36:42 +02:00
Maybe Waffle
d5392fddab
Update teloxide-core
yet again
2022-01-12 12:50:35 +03:00
p0lunin
7615fc1392
fix clippy errors
2022-01-06 15:12:57 +02:00
p0lunin
d7386a7dc1
remove old_dispatching
feature, add prelude2
and repls2
modules
2022-01-06 14:50:59 +02:00
p0lunin
a8098350fc
Merge branch 'dev' into dispatching2
...
# Conflicts:
# Cargo.toml
# examples/dialogue_bot/Cargo.toml
# examples/inline_bot/src/main.rs
# src/dispatching/mod.rs
# src/lib.rs
2022-01-06 14:25:01 +02:00
p0lunin
dac969250d
update rest of handlers in the Dispatcher
2022-01-05 20:33:48 +02:00
p0lunin
e2891d6d00
remove #[out()] attribute
2021-12-29 14:21:37 +02:00
p0lunin
72dfef4963
added DialogueState macro
2021-12-29 13:33:51 +02:00
p0lunin
6c0f1b9fc4
Added handler_factory.rs
2021-12-28 18:24:56 +02:00
Maybe Waffle
edecf5975f
Update teloxide-core
to the latest git version
2021-12-28 17:31:33 +03:00
Hirrolot
b253b7eec2
Don't define async fn run()
...
rustc now emits enough good compiler error messages for procedural macros such as `#[tokio::main]`.
2021-12-27 21:13:46 +06:00
p0lunin
b10288f751
remove unused imports
2021-12-26 20:06:21 +02:00
p0lunin
4452631fcc
fix repls
2021-12-26 19:59:13 +02:00
p0lunin
a644d0b6d2
added handler_ext.rs, updated dptree version
2021-12-26 16:55:24 +02:00
p0lunin
6959d1c928
added dialogues + updated sqlite_remember_bot example.
2021-12-15 13:46:32 +02:00
p0lunin
3f1d1360c6
fmt
2021-12-11 13:11:44 +02:00
p0lunin
635c18142a
1. Bump futures to 0.3.15 version (Abortable::is_aborted()).
...
2. Fix simple_commands_bot example.
2021-12-11 13:11:25 +02:00
p0lunin
4752b22c43
1. Change feature dispatching2 -> old_dispatching.
...
2. Added command repls.
3. Added function BotCommand::ty() due to new restrictions in the command repls.
2021-12-11 12:46:44 +02:00
p0lunin
93ed028e44
added dispatching2
feature, implemented standard repls
2021-11-25 13:44:55 +02:00
p0lunin
14083c8300
Many improvements of Dispatcher
, also made many dispatcher::*
methods and types pub(crate) for using in dispatching2 module
2021-11-25 12:59:54 +02:00
p0lunin
887b24d27f
Initial commit.
...
1. Added `dptree` dependency.
2. Added `dispatching2` module.
2. Added `Dispatcher` and `Handlers` types, which is similar to `dispatching::Dispatcher` type.
2021-11-13 12:35:56 +02:00
Waffle Maybe
fb238ff656
Merge branch 'dev' into master-to-dev-1
2021-10-25 17:17:42 +03:00
Maybe Waffle
f6c4701932
fix clippy
2021-10-25 15:50:04 +03:00
964323fca4
Fix compilation without ctrlc_handler feature
...
The feature gate is moved to the `dispatching` mod level.
Public exports are also covered by this flag now.
2021-10-25 02:12:11 +03:00