Commit graph

2249 commits

Author SHA1 Message Date
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
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
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
p0lunin
e53f9eb2b3 use new system in the dice example 2021-12-03 16:02:57 +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
Hirrolot
2b55ee8482
Merge pull request #424 from teloxide/Hirrolot-patch-1
Add more community bots
2021-08-21 22:49:03 -07:00
Hirrolot
b45bc081d2
Merge branch 'dev' into Hirrolot-patch-1 2021-08-21 22:39:17 -07:00
Hirrolot
e2db85e162
Paraphrase magnickolas/remindee-bot 2021-08-22 11:37:16 +06:00
Hirrolot
06ad93b3ce
Merge pull request #428 from teloxide/add_crate_upd_bot_to_community_bots_list
Add WaffleLapkin/crate_upd_bot to `Community bots` list
2021-08-19 22:49:46 -07:00
Hirrolot
f3df688f4c
Merge pull request #425 from shadsbot/dev
Include inline bot example
2021-08-19 22:48:39 -07:00
Hirrolot
df9a10105e
Merge pull request #429 from cyberknight777/dev
Add cyberknight777/knight-bot to community bots
2021-08-19 22:47:38 -07:00
Cyber Knight
d8a8648911
Add cyberknight777/knight-bot to community bots
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2021-08-20 13:24:24 +08:00
Waffle Lapkin
d3906476e9
Add WaffleLapkin/crate_upd_bot to Community bots list 2021-08-20 01:32:55 +03:00
Colin Diener
f5a7187295 Apply builder-pattern to second example result 2021-08-19 11:23:57 -07:00
Colin Diener
1bd47314be Remove dbg! macro in favour of log::error! macro 2021-08-19 11:05:56 -07:00
Colin Diener
43f8e73973 Remove superfluous struct 2021-08-19 11:03:53 -07:00
Colin Diener
f6ad066087 Clarify verbage from message to query 2021-08-19 11:00:58 -07:00
Colin Diener
93c8e00086 Remove unused dispatcher variable, Bot to AutoSend 2021-08-19 10:56:39 -07:00
Hirrolot
7ccf460054
Merge pull request #426 from teloxide/clippy_f
Suppress clippy false positive
2021-08-19 06:38:53 -07:00
Waffle
a2bfdf850a Suppress clippy false positive 2021-08-19 12:03:35 +03:00
Colin Diener
ea5b2df251 Include inline bot example 2021-08-18 21:54:32 -07:00
Hirrolot
7db222ace7
Add more community bots 2021-08-06 00:51:09 +06:00
Hirrolot
f760181b81
Merge pull request #422 from teloxide/update-release-date
Update the v0.5.1 release date
2021-08-05 10:31:46 -07:00
Hirrolot
2ae7c10fc7 Update the v0.5.1 release date 2021-08-05 23:10:40 +06:00
Hirrolot
461e4d6fbf
Merge pull request #421 from teloxide/v0.5.1
Prepare for v0.5.1
2021-08-05 10:02:37 -07:00
Hirrolot
d339d82fbc Propagate the trace_adaptor & erased features from teloxide-core 2021-08-05 22:17:47 +06:00
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