Commit graph

182 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
a13482fc49 Fmt 2020-07-10 23:36:37 +06:00
Temirkhan Myrzamadi
565a98919d Replace all 'mime_type: String' with MimeWrapper 2020-05-23 12:06:12 +06:00
Temirkhan Myrzamadi
cc37f9ff3c NonPrivate* -> Public*
ChatKind::NonPrivate -> ChatKind::Public
ChatNonPrivate -> ChatPublic
NonPrivateChatKind -> PublicChatKind
NonPrivateChatChannel -> PublicChatChannel
NonPrivateChatGroup -> PublicChatGroup
NonPrivateChatSupergroup -> PublicChatSupergroup
2020-05-08 21:12:11 +06:00
Temirkhan Myrzamadi
181f9a6d8e Fix Clippy 2020-05-08 13:08:04 +06:00
Temirkhan Myrzamadi
65e210fff1 Split big enumerations' variants into new types 2020-05-08 12:57:50 +06:00
Temirkhan Myrzamadi
46338c464f Refactor error logging if Update is failed to parse 2020-03-31 21:41:00 +06:00
Temirkhan Myrzamadi
c90af42db6
Merge branch 'dev' into upload_from_memory 2020-03-26 13:23:21 +06:00
jairinhohw
178b4ee70d Try to minimize cloning 2020-03-25 04:26:17 -03:00
jairinhohw
cb68f1f7aa Setting InputFile::Memory file name 2020-03-24 17:45:19 -03:00
jairinhohw
9bfec9546f Add InputFile::Memory 2020-03-24 17:30:01 -03:00
Temirkhan Myrzamadi
f1353b00ae Add InlineKeyboardButtonKind::{LoginUrl, CallbackGame, Pay} 2020-03-09 14:15:50 +06:00
Temirkhan Myrzamadi
a801953516 Fix the tests 2020-02-24 21:29:09 +06:00
Temirkhan Myrzamadi
d165de64d7 Remove LanguageCode
Because the official Telegram documentation doesn't specify a concrete version of IETF language tag.
2020-02-24 21:21:53 +06:00
p0lunin
7ffb067434 prettified json 2020-02-24 17:02:28 +02:00
p0lunin
83332c7421 added serde rename and test 2020-02-24 16:48:56 +02:00
Temirkhan Myrzamadi
28f4dd7c16 Add LanguageCode::Other 2020-02-23 20:42:10 +06:00
Temirkhan Myrzamadi
29ed9a1ffe Fix parsing pinned_message
Related to https://github.com/teloxide/teloxide/issues/167.
2020-02-20 21:22:46 +06:00
Temirkhan Myrzamadi
fa554a8252 Fixes 2020-02-19 04:54:41 +06:00
p0lunin
a8ced80f78 changed type of field Message::from to Option<User> because message from channel no have sender + fmt 2020-02-12 20:54:54 +02:00
p0lunin
ce48e211a2 Merge remote-tracking branch 'origin/rework-dispatching' into rework-dispatching 2020-02-11 21:46:56 +02:00
Temirkhan Myrzamadi
7433a2b072 Don't fail other updates if one is not parsed 2020-02-12 01:45:38 +06:00
p0lunin
47aab58230 remove flatten in Message.from 2020-02-11 21:37:55 +02:00
p0lunin
98345b4d45 added Default to ChatPermissions 2020-02-11 21:35:06 +02:00
p0lunin
2242a8bad8 replace type Message.from from Sender to User 2020-02-11 21:34:32 +02:00
Maximilian Siling
423495d1c7 Fix parsing for posts in private channels 2020-02-11 19:37:56 +03:00
Temirkhan Myrzamadi
99c7bf5955
Merge branch 'dev' into rework-dispatching 2020-02-07 20:31:52 +06:00
Temirkhan Myrzamadi
2785c892c0 Extend the middlewares API 2020-02-07 06:20:14 +06:00
Temirkhan Myrzamadi
d4170725aa Fix the docs 2020-02-07 06:03:33 +06:00
p0lunin
375f09df18 added fields to Poll 2020-02-05 17:02:10 +02:00
p0lunin
4d8b2d0473 added field language for MessageEntity 2020-02-04 23:19:06 +02:00
p0lunin
a95bb5b2d9 added struct Me 2020-02-04 23:13:31 +02:00
p0lunin
95b190e573 added new type poll_answer 2020-02-04 23:06:36 +02:00
p0lunin
357e2640f4 added new type keyboard_button_poll_type.rs 2020-02-04 22:59:44 +02:00
p0lunin
fb3f0558c2 added new fields to sendPoll 2020-02-04 22:44:41 +02:00
p0lunin
5e8a698d22 Merge branch 'dev' of https://github.com/teloxide/teloxide into rework-dispatching
 Conflicts:
	src/utils/mod.rs
2020-02-04 14:22:30 +02:00
Temirkhan Myrzamadi
0077b99ef6
Merge branch 'dev' into useful_functions 2020-02-03 17:14:59 +06:00
Temirkhan Myrzamadi
32cab96af5 Fix the docs 2020-02-03 01:42:32 +06:00
Temirkhan Myrzamadi
32d607daa9 Fix ping-pong-bot 2020-02-03 01:12:36 +06:00
Temirkhan Myrzamadi
2c4102e2b3 Simplify building ReplyKeyboardMarkup 2020-02-03 00:54:11 +06:00
Temirkhan Myrzamadi
d7d97ef136 Fix the docs 2020-02-02 22:03:18 +06:00
p0lunin
4d4970f450 fix compilation error 2020-02-01 21:07:13 +02:00
Temirkhan Myrzamadi
6f2abd10ef Finally fix the error 2020-01-29 23:43:47 +06:00
p0lunin
1cec80bf9d add Update::user(), Update::chat() functions 2020-01-29 19:25:56 +02:00
p0lunin
2028ce70c7 add BotCommand::parse(s: &str) 2020-01-26 23:13:29 +02:00
p0lunin
d490ed9bc0 replace return type in url() function to Url from String 2020-01-24 20:12:23 +02:00
p0lunin
8c2b0b6c70 fmt another 2020-01-23 23:19:54 +02:00
Temirkhan Myrzamadi
6a1d715a69 Small fixes 2020-01-22 01:51:24 +06: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
4af7b9f1f0 Fix bug with last_name, now between first_name and last_name is space 2020-01-19 15:46:11 +02:00