Hirrolot
968c988f7f
Fix the lost stuff
2022-04-02 20:54:33 +06:00
Hirrolot
18651a8253
Some REPLs twiddling
2022-03-29 02:10:19 +06:00
Hirrolot
4af85f3d5b
Remove the dependency requirements notice for commands_repl
2022-03-29 02:03:35 +06:00
Hirrolot
fa5d1f738b
Remove support for the old dispatching
2022-03-29 01:55:09 +06:00
Maybe Waffle
ed40e2ad3b
fix clippy
2022-03-27 22:11:17 +04:00
Maybe Waffle
6922128cb6
Fix some places with remaining BotCommand
(w/o s
)
2022-03-27 22:11:17 +04:00
Maybe Waffle
91bea5be5e
Apply suggestions from the review
...
- remove `username_from_bot`
- add `username_from_me`
2022-03-27 22:11:17 +04:00
Maybe Waffle
484d1ccd83
Fixup documentation
2022-03-27 22:10:50 +04:00
Maybe Waffle
86cc3d782f
Add CommandDescription[s]
...
Add two new types - `CommandDescription` and `CommandDescriptions`, make
`BotCommands` return the latter.
2022-03-27 22:10:50 +04:00
Maybe Waffle
b3b8073a12
Rename BotCommand
-> BotCommands
(the trait)
...
This removes the ambiguity with `types::BotCommand` and also the new
name just makes more sense, since this trait is usually implemented for
enums that can be many different commands and not a single one.
Note: this requires changes in the `teloxide-macro` crate.
2022-03-27 22:10:50 +04:00
Maybe Waffle
8116059ba3
Document BotCommand
methods
2022-03-27 22:10:50 +04:00
Maybe Waffle
ceb2415351
Require that UpdateListener::StopToken
is Send
2022-03-27 13:29:17 +04:00
Hirrolot
9cd4bb11b0
Implement teloxide::handler!
2022-03-26 14:56:53 +06:00
Hirrolot
f5653c747d
Remove support for the old dispatching
2022-03-24 17:25:42 +06:00
Hirrolot
85a04553a5
Document new command renaming rules
2022-03-23 08:03:15 +06:00
Waffle Maybe
a4c147538b
Merge pull request #559 from teloxide/deprecate_enable_logging
...
Deprecate `enable_logging!` in favour of configuring logging yourself
2022-03-21 21:12:04 +04:00
Hirrolot
de2974f052
Correct open issue suggestion (dispatching2
)
2022-03-21 22:10:45 +06:00
Hirrolot
43a9b2d327
Merge branch 'dev' into correct-open-issue-suggestion
2022-03-21 22:09:52 +06:00
Maybe Waffle
22e5165f89
Remove mentions of enable_logging!
from documentation/readme
2022-03-21 19:42:55 +04:00
Hirrolot
1f95c1d2b3
Don't warn abount unhandled updates in repls2
2022-03-21 21:11:46 +06:00
Maybe Waffle
dbc7633fdb
Deprecate enable_logging!
in favour of configuring logging yourself
2022-03-21 18:55:34 +04:00
Hirrolot
81fbb1769c
Merge pull request #558 from teloxide/log-dispatcher-error
...
Log `UpdateKind::Error` in `dispatching2`
2022-03-21 07:48:38 -07:00
Hirrolot
91f8eb6acc
Log UpdateKind::Error
in dispatching2
2022-03-21 20:40:04 +06:00
Hirrolot
be143a3f6e
Move ErasedStorage
upper
2022-03-21 20:18:36 +06:00
Hirrolot
cf8c1b78b7
Rewrite examples/db_remember.rs
to use ErasedStorage
2022-03-21 20:06:32 +06:00
Hirrolot
0b6e7acf9f
Favour a default function instead of StorageExt
2022-03-21 18:09:36 +06:00
Hirrolot
c6f0cd9404
Implement ErasedStorage
2022-03-20 09:06:21 +06:00
Waffle Maybe
9d9323648d
Correct open issue suggestion
2022-03-17 22:44:45 +04:00
TheAwiteb
b62d85f2b6
Fix parse_command_with_prefix
case sensitive
2022-03-14 17:49:45 +03:00
Maybe Waffle
31ff3a468d
Fix compilation with non-default features
2022-03-08 12:20:01 +04:00
Maybe Waffle
ccd87a6ed3
Remove doc(cfg)
annotations in favour of feature(doc_auto_cfg)
2022-02-10 16:39:21 +03:00
Hirrolot
24d5c38670
Fix the broken URL
2022-02-08 04:09:08 +06:00
Hirrolot
3ab5763afb
Add test_tokio_spawn
2022-02-08 03:54:30 +06:00
Hirrolot
ba277991c9
Make the default and error handlers Send + Sync
2022-02-07 15:53:52 +06:00
Maybe Waffle
24c8035b3c
Refactor ShutdownToken
2022-02-04 23:52:52 +03:00
Hirrolot
42e1cd2cd1
Update an example in src/dispatching2/mod.rs
2022-02-05 02:43:12 +06:00
Hirrolot
b4aa3a4504
Move storage
back to dispatching
2022-02-05 02:37:01 +06:00
Hirrolot
5909e48e11
Deprecate the old dispatching system
2022-02-05 02:33:03 +06:00
Hirrolot
07b844db99
Add BotCommand::bot_commands
2022-02-05 02:18:47 +06:00
Hirrolot
735e6a41f2
Replace CARGO_PKG_NAME
with CARGO_CRATE_NAME
in logging
2022-02-05 01:07:28 +06:00
Hirrolot
c2c9620b48
Remove redundant examples from src/logging.rs
2022-02-05 01:01:24 +06:00
Hirrolot
08380790b8
Fix the docs of HandlerFactory
2022-02-05 00:32:12 +06:00
Hirrolot
aade493391
Update the docs of dialogue/mod.rs
2022-02-05 00:26:40 +06:00
Hirrolot
539c53abde
Log errors in HandlerExt::enter_dialogue
2022-02-05 00:25:18 +06:00
Hirrolot
67901fa53b
Update dptree
2022-02-05 00:02:22 +06:00
Hirrolot
bd73d79e80
Reuse dispatching::dialogue::storage
2022-02-04 22:54:12 +06:00
Hirrolot
a59b3a7957
Make default_handler
a closure
2022-02-04 22:32:06 +06:00
Hirrolot
123ac1ec67
Make UpdateFilterExt
and MessageFilterExt
sealed
2022-02-04 22:01:50 +06:00
Hirrolot
b66beef534
Explain handler params in examples/dialogue.rs
2022-02-04 20:21:16 +06:00
Hirrolot
9efa2f6cbd
DispatcherBuilder::new
=> Dispatcher::builder
2022-02-04 20:09:53 +06:00