Commit graph

2547 commits

Author SHA1 Message Date
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
44f3a9e2a5 add dispatching2_features_bot example. 2022-01-12 15:45:01 +02:00
p0lunin
1be9dd9a48 import MessageFilterExt in the prelude2.rs 2022-01-12 15:44:31 +02:00
Hirrolot
c12fae2008
Merge pull request #487 from teloxide/update_teloxide_core_to_master
Update `teloxide-core` to the latest git version
2022-01-12 19:54:16 +07: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
Maybe Waffle
85ef14867f Fix examples 2022-01-12 14:03:52 +03:00
Maybe Waffle
98855ecebe Update test_example.sh
- Remove BOM
- Fix shebang
- Do not run `cargo check` in parallel
  - `rustc` is good at utilizating cores by default
  - running `cargo check` in parallel messes up the output
2022-01-12 14:01:07 +03:00
p0lunin
7a9ae4fef6 update buttons_bot example 2022-01-12 12:41:19 +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
ca1c1f3e33 update teloxide_macros dependency + update examples and tests using BotDialogue derive macro 2022-01-06 14:11:53 +02:00
p0lunin
d6e439b0cf update simple_commands_bot example 2022-01-06 14:04:09 +02:00
p0lunin
593dbc29f7 update shared_state_bot example 2022-01-06 13:59:50 +02:00
p0lunin
980aab5fd0 update redis_remember_bot example 2022-01-06 13:59:40 +02:00
p0lunin
0eb9314c71 update ngrok_bot example 2022-01-06 13:34:38 +02:00
p0lunin
9892096027 update inline_bot example 2022-01-06 13:30:27 +02:00
p0lunin
dac969250d update rest of handlers in the Dispatcher 2022-01-05 20:33:48 +02:00
p0lunin
e0d2d141f0 update dices_bot example 2022-01-05 20:23:20 +02:00
p0lunin
18afd9a95e update heroku_ping_pong example 2022-01-05 20:20:02 +02:00
Waffle Maybe
9d062f62ce
Merge pull request #488 from teloxide/update-license-year-2022
Update the license year to 2022
2022-01-02 00:12:39 +03:00
Hirrolot
4b2d223bcd
Update the license year 2022-01-02 02:52:34 +06: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
p0lunin
600330f827 remove state.rs file 2021-12-27 17:23:37 +02:00
Hirrolot
2c2cfae0e0 Merge branch 'dispatching2' of https://github.com/teloxide/teloxide into dispatching2 2021-12-27 21:13:57 +06: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
50f37cf43b update dialogue_bot example 2021-12-27 17:12:31 +02:00
p0lunin
b10288f751 remove unused imports 2021-12-26 20:06:21 +02:00
p0lunin
161d40897c Merge remote-tracking branch 'origin/dispatching2' into dispatching2
# Conflicts:
#	Cargo.toml
#	examples/sqlite_remember_bot/src/main.rs
#	src/dispatching2/dispatcher.rs
#	src/dispatching2/repls/commands_repl.rs
2021-12-26 20:03:21 +02:00
p0lunin
51d6a2e900 Update admin_bot example. 2021-12-26 19:59:32 +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
Hirrolot
15a2beceb5
Merge pull request #484 from teloxide/remove-authors
Remove the `authors` field from `Cargo.toml`
2021-12-25 02:55:32 +06:00
Hirrolot
e12b644e31 Remove the authors field from Cargo.toml 2021-12-24 21:25:51 +06:00
Hirrolot
ba7c3ed35b Remove unused imports 2021-12-24 10:42:08 +06:00
Hirrolot
957bff44b9 Update dptree 2021-12-24 10:41:28 +06:00
Hirrolot
47445cb7b0
Merge pull request #483 from luminosoda/patch-1
crates.io no longer shows badges
2021-12-21 18:39:00 +06:00
Andrew
2dba0aa2f0
crates.io no longer shows badges 2021-12-21 15:35:48 +05:00
Hirrolot
4958f0dae7 Update dptree 2021-12-21 12:11:41 +06: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