Commit graph

885 commits

Author SHA1 Message Date
p0lunin
0308f8950a add #[command(description = "")] for enums 2020-02-01 21:36:56 +02:00
p0lunin
4d4970f450 fix compilation error 2020-02-01 21:07:13 +02:00
p0lunin
92ccb49216 Merge remote-tracking branch 'origin/useful_functions' into useful_functions 2020-01-29 19:26:13 +02:00
p0lunin
1cec80bf9d add Update::user(), Update::chat() functions 2020-01-29 19:25:56 +02:00
Temirkhan Myrzamadi
017a0d3169 Remove parse_command_into_enum and fix the docs 2020-01-28 08:34:10 +06:00
Temirkhan Myrzamadi
9971659e03 Merge branch 'useful_functions' of https://github.com/teloxide/teloxide into useful_functions 2020-01-28 08:26:00 +06:00
p0lunin
2028ce70c7 add BotCommand::parse(s: &str) 2020-01-26 23:13:29 +02:00
Temirkhan Myrzamadi
b71088746c Bullshit 2020-01-26 04:18:13 +06:00
Temirkhan Myrzamadi
004d5bdaf5 Fix the docs (utils/parsers.rs) 2020-01-26 04:14:47 +06:00
p0lunin
77487c07dd fix clippy errors 2020-01-25 23:34:17 +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
d490ed9bc0 replace return type in url() function to Url from String 2020-01-24 20:12:23 +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
8c2b0b6c70 fmt another 2020-01-23 23:19:54 +02:00
p0lunin
1aae70048e added is_{private, group, supergroup, channel, chat} for type Chat 2020-01-19 16:05:45 +02:00
p0lunin
50c29227ce Merge branch 'dev' of https://github.com/teloxide/teloxide into useful_functions 2020-01-19 15:50:25 +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
4af7b9f1f0 Fix bug with last_name, now between first_name and last_name is space 2020-01-19 15:46:11 +02:00
p0lunin
db5145911b added parse_command, TelegramCommandEnum trait, parse_command_into_enum 2020-01-18 15:14:31 +02:00
Temirkhan Myrzamadi
1821e1f703
Merge pull request #141 from teloxide/fix-update-kind
Fix UpdateKind
2020-01-18 05:47:04 +06:00
Temirkhan Myrzamadi
e3235adf2f Fix UpdateKind 2020-01-18 05:40:01 +06:00
Temirkhan Myrzamadi
9712366d4a Merge branch 'dev' of https://github.com/teloxide/teloxide into dev 2020-01-17 20:57:53 +06:00
Temirkhan Myrzamadi
3b6dbecd11 Fix conflicts 2020-01-17 20:57:26 +06:00
Temirkhan Myrzamadi
c0f83a4999 Fmt 2020-01-17 20:19:13 +06:00
Temirkhan Myrzamadi
510e5d8630 Temporary remove examples/ because of strange errors 2020-01-17 20:13:53 +06:00
p0lunin
6a6e49d60a added method user_mention_or_link 2020-01-16 12:25:52 +02:00
p0lunin
c94c502ddd removed unused imports 2020-01-16 12:25:33 +02:00
p0lunin
8e0657b6bc
Merge pull request #138 from teloxide/text_getter_for_message_entity
add method text_from for MessageEntity
2020-01-15 11:57:19 +02:00
Temirkhan Myrzamadi
dedc861523 Implement chat::Dispatcher 2020-01-15 03:46:22 +06:00
p0lunin
52d47f54be functions for Message and User 2020-01-14 22:03:34 +02:00
p0lunin
1ec4e2d400 fixes 2020-01-14 21:17:02 +02:00
p0lunin
7755e09122 remove .to_string() 2020-01-14 20:58:38 +02:00
p0lunin
814a424caa
make method text_from public 2020-01-13 13:07:19 +02:00
p0lunin
5cb48d8a3f add method text_from 2020-01-12 21:23:04 +02:00
Temirkhan Myrzamadi
214969685a
Merge pull request #136 from teloxide/passport-errors
Add passport_element_error.rs
2020-01-12 23:01:21 +06:00
Temirkhan Myrzamadi
60d84b817c Add passport_element_error.rs 2020-01-12 21:44:54 +06:00
Temirkhan Myrzamadi
7e02337ebe
Merge pull request #135 from teloxide/checked_types
Checked types
2020-01-12 02:35:03 +06:00
p0lunin
629fcaf564 fmt 2020-01-11 21:47:59 +02:00
p0lunin
1d6803a65f fix 2020-01-11 21:46:30 +02:00
p0lunin
d1eedece40 mime 2020-01-11 21:46:13 +02:00
Temirkhan Myrzamadi
29c092c556
Merge pull request #134 from teloxide/fix-types-docs
Replace ” with `
2020-01-12 01:18:24 +06:00
Temirkhan Myrzamadi
fbc6b57e2b Replace ” with ` 2020-01-12 01:17:49 +06:00
p0lunin
d312a24f12 use serde::{Serialize, Deserialize} 2020-01-11 21:00:52 +02:00
p0lunin
7c82f7e423 update test 2020-01-11 20:58:43 +02:00
p0lunin
d50e47ecd2 languageCode 2020-01-11 20:56:49 +02:00