Commit graph

302 commits

Author SHA1 Message Date
Maybe Waffle
0bddb1d927 Update changelog 2022-04-05 16:37:22 +04:00
Maybe Waffle
e951af7abe Fix ngrok_ping_pong example required-features
...and info! message
2022-04-05 16:36:31 +04:00
Maybe Waffle
37d1252bc9 Use new built-in webhooks in ngrok example
I've also changed the port from 80 to 8443, since 80 usually requires
root privileges.
2022-04-05 16:36:22 +04:00
Hirrolot
5838b31834 Capture identifier in format strings (examples/) 2022-04-03 16:06:44 +06:00
Hirrolot
b88f73b35f Fix examples/dialogue.rs according to teloxide::handler! 2022-04-03 01:50:53 +06:00
Hirrolot
62d4440c63 Fix examples/db_remember.rs 2022-04-02 21:41:04 +06:00
Hirrolot
9bb2a85aba Merge branch 'dev' into teloxide-handler 2022-04-02 21:32:59 +06:00
Hirrolot
968c988f7f Fix the lost stuff 2022-04-02 20:54:33 +06:00
Hirrolot
5000c4cec4 Some fixing stuff lol 2022-04-02 15:34:43 +06:00
Hirrolot
0c1e5c1958 Fix fucked up examples/admin.rs 2022-03-29 02:01:00 +06:00
Hirrolot
d4709c8061 Refactor examples/admin.rs and buttons.rs 2022-03-29 01:55:44 +06:00
Hirrolot
ae227be4f0 Use std::error::Error instead of anyhow in the examples 2022-03-29 01:55:09 +06:00
Hirrolot
fa5d1f738b Remove support for the old dispatching 2022-03-29 01:55:09 +06: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
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
Hirrolot
363e0bff18 Update the examples to use teloxide::handler! 2022-03-26 14:57:30 +06:00
Hirrolot
f8438f1772 Refactor examples/admin.rs and buttons.rs 2022-03-24 17:31:01 +06:00
Hirrolot
3075dfd8ac Use std::error::Error instead of anyhow in the examples 2022-03-24 17:30:36 +06:00
Hirrolot
f5653c747d Remove support for the old dispatching 2022-03-24 17:25:42 +06:00
Hirrolot
3788f8bb6a
Update examples/README.md 2022-03-21 23:04:18 +06:00
Maybe Waffle
dbc7633fdb Deprecate enable_logging! in favour of configuring logging yourself 2022-03-21 18:55:34 +04:00
Hirrolot
cf8c1b78b7 Rewrite examples/db_remember.rs to use ErasedStorage 2022-03-21 20:06:32 +06:00
Hirrolot
a8fbee5914 Simplify the example usage guide 2022-03-12 14:36:31 +06:00
Hirrolot
7a932c8fd9 Merge examples/sqlite_remember.rs with redis_remember.rs 2022-03-12 14:33:38 +06:00
Hirrolot
d4a4719b58 Simplify examples/dispatching2_features.rs 2022-02-05 00:53:55 +06:00
Hirrolot
108d7b7d94
Update examples/dispatching2_features.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-02-05 00:33:28 +06:00
Hirrolot
ef323889db Fix the docs of the Heroku example 2022-02-05 00:31:13 +06:00
Hirrolot
67901fa53b Update dptree 2022-02-05 00:02:22 +06:00
Hirrolot
a59b3a7957 Make default_handler a closure 2022-02-04 22:32:06 +06:00
Hirrolot
24917a60d4 Use #[derive(BotCommand)] in examples/sqlite_remember.rs and examples/redis_remember.rs 2022-02-04 20:59:46 +06:00
Hirrolot
b66beef534 Explain handler params in examples/dialogue.rs 2022-02-04 20:21:16 +06:00
Hirrolot
09c3424097 Replace lazy_static with once_cell 2022-02-04 20:14:57 +06:00
Hirrolot
9efa2f6cbd DispatcherBuilder::new => Dispatcher::builder 2022-02-04 20:09:53 +06:00
Hirrolot
e5330cdec2 HandlerExt::add_dialogue => HandlerExt::enter_dialogue 2022-02-04 20:00:21 +06:00
Hirrolot
0000839144 HandlerExt::add_command => HandlerExt::filter_command 2022-02-04 19:46:34 +06:00
Hirrolot
5a00e970e4 .chat_id() => .chat.id 2022-02-04 19:45:35 +06:00
Hirrolot
ec9f701cf7 Revert ".chat_id() => .chat_id"
This reverts commit 26a28b1918.
2022-02-04 19:44:04 +06:00
Hirrolot
26a28b1918 .chat_id() => .chat_id 2022-02-04 19:38:06 +06:00
Hirrolot
ee3854c9a3 Merge branch 'dispatching2' of https://github.com/teloxide/teloxide into dispatching2 2022-02-04 19:09:43 +06:00
Hirrolot
879560f34a Fix the fixes 2022-02-04 19:09:32 +06:00
Hirrolot
47cc80d63e
Update examples/buttons.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-02-04 16:46:26 +06:00
Hirrolot
263478a20a Simplify examples/dialogue.rs 2022-02-04 09:58:56 +06:00
Hirrolot
6ad7a5b0a2 Fix Clippy 2022-02-03 20:48:40 +06:00
Hirrolot
242bfef885 Fix merge conflicts 2022-02-03 20:39:32 +06:00
Hirrolot
3307a0915c Use .setup_ctrlc_handler() in the examples 2022-02-03 16:34:40 +06:00
Hirrolot
f97d699f74 Remove .unwraps in examples/dialogue.rs 2022-02-03 16:32:11 +06:00
Hirrolot
b11e5fdd19 Rewrite examples/redis_remember.rs & examples/sqlite_remember.rs 2022-02-03 03:36:53 +06:00
Hirrolot
b9ac6f70fb Rewrite examples/dialogue.rs to take advantage of multiple fields 2022-02-03 03:12:09 +06:00