Commit graph

20 commits

Author SHA1 Message Date
p0lunin
673269602d fmt 2020-02-22 23:02:31 +02:00
p0lunin
cb3fde7191 fixed descriptions (now Command::descriptions() does not display " - " when there is no description) 2020-02-22 22:54:48 +02:00
p0lunin
61f06a5e7a fixed documentation 2020-02-22 22:53:11 +02:00
p0lunin
a3e5331312 changed signature to Command::parse(text, bot_name) but it failed 2020-02-22 18:58:29 +02:00
p0lunin
15d5a02154 added split by '@' 2020-02-20 00:10:00 +02:00
Temirkhan Myrzamadi
f9142b9e72 Fix Cargo.toml, teloxide-macros/Cargo.toml 2020-02-19 22:40:49 +06:00
Temirkhan Myrzamadi
469b873ec0 Fix rustfmt check 2020-02-19 05:02:51 +06:00
Temirkhan Myrzamadi
14561e437f Fix fmtcheck 2020-02-11 19:34:02 +06:00
Temirkhan Myrzamadi
ab8dae9213 Fix Clippy 2020-02-07 20:45:00 +06:00
p0lunin
0308f8950a add #[command(description = "")] for enums 2020-02-01 21:36:56 +02:00
p0lunin
2028ce70c7 add BotCommand::parse(s: &str) 2020-01-26 23:13:29 +02:00
p0lunin
c5169038d9 fixed compilation errors and warnings 2020-01-25 22:56:09 +02:00
p0lunin
0654bbc82d now rename in variant overlap rename in enum 2020-01-25 22:47:31 +02:00
p0lunin
7488f96d02 simplify parse string literal 2020-01-24 19:50:16 +02:00
p0lunin
9cefbca3f0 rename TelegramBotCommand to BotCommand 2020-01-24 19:47:10 +02:00
p0lunin
04852ddd22 add attributes for enums 2020-01-24 19:44:20 +02:00
p0lunin
73be83a5b1 add support for many arguments in one attribute like #[command(attr1 = "value1", attr2 = "value2")] 2020-01-24 11:55:20 +02:00
p0lunin
34e1e69e77 refactor teloxide-macros, and added attributes prefix and description 2020-01-23 23:20:59 +02:00
p0lunin
5f34d7ffc6 changed name of trait from TelegramCommandEnum to TelegramBotCommand and divided parse_command into parse_command and parse_command_with_prefix 2020-01-19 15:48:02 +02:00
p0lunin
db5145911b added parse_command, TelegramCommandEnum trait, parse_command_into_enum 2020-01-18 15:14:31 +02:00