Waffle
3157305105
add automatic test of code blocks from readme
2020-08-12 23:21:13 +03:00
Waffle
b81bfd3b2a
fix fmt
2020-08-10 18:39:30 +03:00
Waffle
02400b18ab
remove TargetMessage as ChatOrInlineMessage reexport as it couldn't be deprecated
...
Also rename `TargetMessage::{Chat => Common}` variant.
(anyway `ChatOrInlineMessage`/`TargetMessage` refactoring is not backward compatible)
2020-08-10 18:27:53 +03:00
Waffle
851e4c6bc6
refactor ChatOrInlineMessage
...
- Rename `ChatOrInlineMessage` => `TargetMessage`
- Change type of `TargetMessage::inline_message_id` `i32` => `String`
- Remove `#[non_exhaustive]` annotation as this enum is unlikely to be changed in future
- Implement `From<String>`
- Use `From<String>` impl in `get_game_high_scores` and `set_game_score` methods
- Leave a deprecated pub use as `ChatOrInlineMessage` for a bit of backward compat
2020-08-10 18:05:49 +03:00
Waffle
503f406edd
Fix edit_*
and stop_inline_message_live_location
methods
...
Previously they have been broken because of the wrong type of
`ChatOrInlineMessage::Inline::inline_message_id` (`i32` instead
of `String`), and wrong return type in case of inline editing
messages (`Message` instead of `True`).
This commit splits the methods into inline and non-inline
versions, fixing the issue.
2020-08-10 18:05:18 +03:00
Eoan Ermine
b1ac80e244
Fix code formatting, remove unused import
2020-08-07 12:02:30 +05:00
PatriotRossii
517afc0cfe
Remove unnecessary derefs
2020-08-07 06:08:22 +05:00
PatriotRossii
817f492223
Un Arc<_> Bot::parse_mode
2020-08-07 05:55:06 +05:00
Temirkhan Myrzamadi
05e32336fa
Add requests::respond
2020-08-02 13:08:43 +06:00
DCjanus
6f13d38812
remove unnecessary type bound
2020-08-02 02:43:30 +08:00
Kirill Mironov
245355ea3e
set default error type
2020-08-01 11:58:24 +03:00
Kirill Mironov
ffb5f29362
Allow for custom error types in TransitionOut
2020-08-01 00:18:52 +03:00
S-Y-rat
8413b6b2b7
Implemented connection tests
2020-07-31 21:37:35 +03:00
Kirill Mironov
08d0d7f2f4
Unpair TransitionOut from concrete Error type resolves #242
2020-07-31 21:10:29 +03:00
Temirkhan Myrzamadi
f2618ad7ed
Fix wrong documentation about TELOXIDE_PROXY
2020-07-31 23:49:43 +06:00
Temirkhan Myrzamadi
6bb8482f3d
Respect TELOXIDE_PROXY in Bot::from_env & BotBuilder
2020-07-31 21:34:48 +06:00
Temirkhan Myrzamadi
d4a14df5c8
Reduce duplication in bot/api.rs
2020-07-31 21:15:21 +06:00
S-Y-rat
c09eca1e39
Switch from rusqlite to sqlx with sqlite feature enabled
2020-07-31 15:59:26 +03:00
Temirkhan Myrzamadi
e2d536bc91
Update examples/dialogue_bot
2020-07-31 18:47:20 +06:00
Temirkhan Myrzamadi
13fb15f24e
Fix compilation
2020-07-31 18:33:43 +06:00
S-Y-rat
d0ab14d593
Make sqlite-storage visible
2020-07-31 15:20:27 +03:00
Temirkhan Myrzamadi
114267f14c
Push code
2020-07-31 17:40:02 +06:00
Temirkhan Myrzamadi
fda07ddd15
Fix one compilation error
2020-07-31 16:18:23 +06:00
Temirkhan Myrzamadi
3e01e0f65f
Remove Arc from dialogues_repl
2020-07-31 16:16:14 +06:00
Temirkhan Myrzamadi
559d3344a2
Attempt to develop dialogue_repl(with_listener)
2020-07-31 14:56:41 +06:00
S-Y-rat
fc5c855a23
Sqlite-storage feature added
2020-07-31 09:31:08 +03:00
Temirkhan Myrzamadi
62bf55c8e6
Don't export REPLs to teloxide::dispatching
2020-07-31 00:56:39 +06:00
Temirkhan Myrzamadi
f5c7da2610
Document repl_with_listener
2020-07-31 00:45:31 +06:00
Temirkhan Myrzamadi
f29138f497
Add repl_with_listener
2020-07-31 00:29:31 +06:00
Temirkhan Myrzamadi
02c71f72cb
Use the generic HandlerE in REPLs
2020-07-31 00:16:21 +06:00
Temirkhan Myrzamadi
2849c1cbde
Fix the docs of REPLs
2020-07-30 23:52:10 +06:00
Temirkhan Myrzamadi
1ab789fd71
Add commands_repl_with_listener
2020-07-30 23:30:28 +06:00
Temirkhan Myrzamadi
ce32f75bed
repl & commands_repl are not only for demonstrative purposes
2020-07-30 20:23:31 +06:00
Temirkhan Myrzamadi
c39586ef10
Add commands_repl
2020-07-30 20:07:46 +06:00
Temirkhan Myrzamadi
1989dcbe04
UpdateWithCx::send_dice -> answer_dice
2020-07-30 19:29:39 +06:00
Temirkhan Myrzamadi
c81ec1602a
Remove repl from prelude
2020-07-30 19:25:56 +06:00
Temirkhan Myrzamadi
67af702a81
Use repl in examples/dices_bot
2020-07-30 19:07:58 +06:00
Temirkhan Myrzamadi
461e1150e5
Add dispatching::repl
2020-07-30 18:54:48 +06:00
Temirkhan Myrzamadi
f39be99644
Add via_bot to Message
2020-07-30 11:18:23 +06:00
Temirkhan Myrzamadi
710675fdf6
Ad open_period & close_date to Poll
2020-07-30 11:11:29 +06:00
Temirkhan Myrzamadi
9686193970
Small fixes
2020-07-30 11:09:01 +06:00
Temirkhan Myrzamadi
8b35f730c7
Ad open_period & close_date to SendPoll
2020-07-30 11:06:44 +06:00
Temirkhan Myrzamadi
a3a86ccaf6
Document SendPoll::{explanation, explanation_parse_mode}
2020-07-30 11:03:41 +06:00
Temirkhan Myrzamadi
92f45e9167
Add explanation & explanation_entities to Poll
2020-07-30 11:02:23 +06:00
Temirkhan Myrzamadi
7885b10fc7
Add explanation & explanation_parse_mode to SendPoll
2020-07-30 10:57:55 +06:00
Temirkhan Myrzamadi
bead262c42
Fix StickerSet
2020-07-29 19:03:49 +06:00
Temirkhan Myrzamadi
0737d23b7f
Merge branch 'master' into v4.7
2020-07-29 18:56:54 +06:00
Temirkhan Myrzamadi
58e50ef705
Merge branch 'non-exhaustive-types'
2020-07-29 18:53:09 +06:00
Temirkhan Myrzamadi
54c2a69fb6
Fix links
2020-07-29 18:48:54 +06:00
Temirkhan Myrzamadi
6bad6d7587
Add SetStickerSetThumb
2020-07-29 18:43:08 +06:00
Temirkhan Myrzamadi
6bef1ff027
Update StickerSet
2020-07-29 18:22:19 +06:00
Temirkhan Myrzamadi
f283d367b6
Update AddStickerToSet
2020-07-29 18:18:50 +06:00
Temirkhan Myrzamadi
644a80f626
Update CreateNewStickerSet
2020-07-29 17:36:48 +06:00
Temirkhan Myrzamadi
0c6246295b
Add SetMyCommands + Bot::set_my_commands
2020-07-29 17:08:26 +06:00
Temirkhan Myrzamadi
57a4a068c7
Add GetMyCommands + Bot::get_my_commands
2020-07-29 16:51:20 +06:00
Temirkhan Myrzamadi
17373a143f
Link SendDice with the official docs
2020-07-29 16:23:39 +06:00
Temirkhan Myrzamadi
1f50bec74f
Add types::BotCommand
2020-07-29 16:22:40 +06:00
Temirkhan Myrzamadi
843fb777f9
Replace media/PING_PONG_BOT.gif with DICES_BOT.gif
2020-07-29 16:10:19 +06:00
Temirkhan Myrzamadi
e74196a62f
Replace examples/ping-pong-bot with examples/dices-bot
2020-07-29 16:02:37 +06:00
Temirkhan Myrzamadi
a6eac93043
Add UpdateWithCx::send_dice
2020-07-29 15:54:43 +06:00
Temirkhan Myrzamadi
bfeec6b1bb
Add the 'dice_works' test
2020-07-29 15:30:18 +06:00
Temirkhan Myrzamadi
d1352f8869
Merge branch 'master' into v4.7
2020-07-29 14:06:28 +06:00
Temirkhan Myrzamadi
3ddd5d9d2b
TFix naming in UpState
2020-07-29 13:59:14 +06:00
Temirkhan Myrzamadi
4d74adcb8c
Merge branch 'master' into v4.7
2020-07-29 13:56:19 +06:00
Temirkhan Myrzamadi
fb7ea5128e
Remove the redundant T1Repr type parameter from UpState::up
2020-07-29 04:52:02 +06:00
Temirkhan Myrzamadi
a4cc59a3e0
Add the 'dice' field to Message
2020-07-29 03:41:57 +06:00
Temirkhan Myrzamadi
5afbef5734
SendDiceEmoji -> DiceEmoji
2020-07-29 03:38:11 +06:00
Temirkhan Myrzamadi
30ee253376
Add Dice
2020-07-29 03:37:20 +06:00
Temirkhan Myrzamadi
54729c6d34
Add SendDice + Bot::send_dice
2020-07-29 03:20:23 +06:00
Temirkhan Myrzamadi
a1d8f65c64
Add a link to Bincode (docs)
2020-07-29 00:12:16 +06:00
Temirkhan Myrzamadi
5491b72032
Add a link to CBOR (docs)
2020-07-29 00:10:30 +06:00
Temirkhan Myrzamadi
a5707fd713
Move UpState to utils
2020-07-28 23:48:46 +06:00
Temirkhan Myrzamadi
63b69780d4
Remove DialogueWithCx::with_new_dialogue
2020-07-28 23:35:18 +06:00
Temirkhan Myrzamadi
d5b453e567
Merge pull request #238 from teloxide/non-exhaustive-types
...
Mark API types as #[non_exhaustive]
2020-07-28 22:21:46 +06:00
Temirkhan Myrzamadi
3a0a005265
Use frunk v0.3.1
2020-07-28 20:58:23 +06:00
Temirkhan Myrzamadi
f7598f5a8b
Add setters to WebhookInfo
2020-07-28 20:50:59 +06:00
Temirkhan Myrzamadi
c7c4299dab
Add setters to Voice
2020-07-28 20:44:15 +06:00
Temirkhan Myrzamadi
711406ba1c
Add setters to VideoNote
2020-07-28 20:41:55 +06:00
Temirkhan Myrzamadi
7f4f77f0e6
Add setters to Video
2020-07-28 20:39:26 +06:00
Temirkhan Myrzamadi
aa311fb96a
Add setters to Venue
2020-07-28 20:35:37 +06:00
Temirkhan Myrzamadi
abaff16949
Add setters to UserProfilePhotos
2020-07-28 20:32:09 +06:00
Temirkhan Myrzamadi
8cd9d582aa
Add setters to Me
2020-07-28 20:26:50 +06:00
Temirkhan Myrzamadi
c2fe72fc47
Add setters to User
2020-07-28 20:24:05 +06:00
Temirkhan Myrzamadi
aa189a8197
Migrate Me from user.rs to me.rs
2020-07-28 20:20:32 +06:00
Temirkhan Myrzamadi
5482e73939
Add setters to Update
2020-07-28 20:19:07 +06:00
Temirkhan Myrzamadi
4668eea86a
Add setters to SuccessfulPayment
2020-07-28 20:17:25 +06:00
Temirkhan Myrzamadi
9b3ce4b0bb
Add setters to StickerSet
2020-07-28 20:11:06 +06:00
Temirkhan Myrzamadi
f4a87b0d70
Add setters to Sticker
2020-07-28 20:00:51 +06:00
Temirkhan Myrzamadi
fd89c138f0
Add setters to ShippingQuery
2020-07-28 19:53:07 +06:00
Temirkhan Myrzamadi
69d580539b
Add setters to ShippingOption
2020-07-28 19:48:51 +06:00
Temirkhan Myrzamadi
869c32d70d
Add setters to ShippingAddress
2020-07-28 19:46:13 +06:00
Temirkhan Myrzamadi
0c6c567146
Add setters to SendInvoice
2020-07-28 19:41:59 +06:00
Temirkhan Myrzamadi
48471e6938
Add setters to ReplyKeyboardRemove
2020-07-28 19:19:40 +06:00
Temirkhan Myrzamadi
3a2003514c
Add setters to ReplyKeyboardMarkup
2020-07-28 19:17:46 +06:00
Temirkhan Myrzamadi
c33fc9b492
Add setters to PreCheckoutQuery
2020-07-28 16:35:32 +06:00
Temirkhan Myrzamadi
52bba75e41
Add setters to PollAnswer
2020-07-28 16:19:52 +06:00
Temirkhan Myrzamadi
3e34cf84c8
Add setters to PollOption
2020-07-28 16:15:10 +06:00
Temirkhan Myrzamadi
6e7257cb5c
Add setters to Poll
2020-07-28 16:11:58 +06:00
Temirkhan Myrzamadi
e593d4c1c7
Add setters to PhotoSize
2020-07-28 15:57:32 +06:00
Temirkhan Myrzamadi
8e9b0b2715
Add setters to PassportFile
2020-07-28 15:49:50 +06:00
Temirkhan Myrzamadi
a505cd72c1
Fix src/types/passport_element_error.rs
2020-07-28 15:46:13 +06:00
Temirkhan Myrzamadi
824ad20ee9
Add setters to PassportElementErrorUnspecified
2020-07-28 15:43:49 +06:00
Temirkhan Myrzamadi
e5c7980659
Add setters to PassportElementErrorTranslationFiles
2020-07-28 15:42:58 +06:00
Temirkhan Myrzamadi
9e0e338b5a
Add setters to PassportElementErrorTranslationFile
2020-07-28 15:42:32 +06:00
Temirkhan Myrzamadi
b53a3aed73
Fix PassportElementErrorFiles
2020-07-28 15:41:45 +06:00
Temirkhan Myrzamadi
670109fdca
Add setters to PassportElementErrorFiles
2020-07-28 15:41:05 +06:00
Temirkhan Myrzamadi
e6beb7d16b
Add setters to PassportElementErrorFile
2020-07-28 15:40:41 +06:00
Temirkhan Myrzamadi
c60e6fa1eb
Add setters to PassportElementErrorSelfie
2020-07-28 15:40:21 +06:00
Temirkhan Myrzamadi
9d0badedce
Add setters to PassportElementErrorReverseSide
2020-07-28 15:39:50 +06:00
Temirkhan Myrzamadi
44ec6450cf
Add setters to PassportElementErrorFrontSide
2020-07-28 15:31:28 +06:00
Temirkhan Myrzamadi
08d6666698
Add setters to PassportElementError
2020-07-28 15:17:13 +06:00
Temirkhan Myrzamadi
d23c22b064
Add setters to PassportData
2020-07-28 15:11:23 +06:00
Temirkhan Myrzamadi
b2755b96b4
Add setters to OrderInfo
2020-07-28 15:06:10 +06:00
Temirkhan Myrzamadi
fd08796861
Add setters to MediaEntity
2020-07-28 15:01:25 +06:00
Temirkhan Myrzamadi
e1e0bd2d89
Add setters to MediaVenue
2020-07-28 14:58:34 +06:00
Temirkhan Myrzamadi
f7769d0d97
Add setters to MediaVoice
2020-07-28 14:57:06 +06:00
Temirkhan Myrzamadi
e672463135
Add setters to MediaVideoNote
2020-07-28 14:54:14 +06:00
Temirkhan Myrzamadi
207527086e
Add setters to MediaVideo
2020-07-28 14:49:38 +06:00
Temirkhan Myrzamadi
248c7396f5
Add setters to MediaText
2020-07-28 14:42:32 +06:00
Temirkhan Myrzamadi
d552a221ad
Add setters to MediaSticker
2020-07-28 14:38:53 +06:00
Temirkhan Myrzamadi
3fc46b48df
Add setters to MediaPhoto
2020-07-28 14:36:05 +06:00
Temirkhan Myrzamadi
8e9f12ecf8
Add setters to MediaLocation
2020-07-28 14:29:56 +06:00
Temirkhan Myrzamadi
6f18b881e8
Add setters to MediaGame
2020-07-28 14:28:43 +06:00
Temirkhan Myrzamadi
84ee6ccf81
Add setters to MediaDocument
2020-07-28 14:27:01 +06:00
Temirkhan Myrzamadi
0bc105352c
Add setters to MediaContact
2020-07-28 02:51:21 +06:00
Temirkhan Myrzamadi
7aaa7eaf64
Add setters to MediaAudio
2020-07-28 02:49:44 +06:00
Temirkhan Myrzamadi
56f02a32c8
Add setters to MediaAnimation
2020-07-28 02:25:15 +06:00
Temirkhan Myrzamadi
baf46bbc8a
Add setters to ForwardOrigin
2020-07-28 02:19:38 +06:00
Temirkhan Myrzamadi
3c3a0aa474
Add setters to ForwardNonChannel
2020-07-28 02:17:19 +06:00
Temirkhan Myrzamadi
3e0f8ab686
Add setters to ForwardChannel
2020-07-28 02:14:58 +06:00
Temirkhan Myrzamadi
e72f622ae5
Add setters to MessagePassportData
2020-07-28 02:09:55 +06:00
Temirkhan Myrzamadi
23aa4842cf
Add setters to MessageConnectedWebsite
2020-07-28 02:07:26 +06:00
Temirkhan Myrzamadi
2502a795a4
Add setters to MessageSuccessfulPayment
2020-07-28 02:04:40 +06:00
Temirkhan Myrzamadi
19eeec124b
Add setters to MessageInvoice
2020-07-28 01:45:16 +06:00
Temirkhan Myrzamadi
5d6604bd52
Add setters to MessagePinned
2020-07-28 01:43:34 +06:00
Temirkhan Myrzamadi
f5b81e87b4
Add setters to MessageMigrate
2020-07-28 01:41:25 +06:00
Temirkhan Myrzamadi
9ec475a69c
Add setters to MessageChannelChatCreated
2020-07-28 01:39:03 +06:00
Temirkhan Myrzamadi
ee63fc5f17
Add setters to MessageSupergroupChatCreated
2020-07-28 01:38:12 +06:00
Temirkhan Myrzamadi
203f2992d8
Add setters to MessageGroupChatCreated
2020-07-28 01:37:22 +06:00
Temirkhan Myrzamadi
8804b7df74
Add setters to MessageDeleteChatPhoto
2020-07-28 01:36:25 +06:00
Temirkhan Myrzamadi
2b0a05ef08
Add setters to MessageNewChatPhoto
2020-07-28 01:34:59 +06:00
Temirkhan Myrzamadi
5e4deb1eeb
Add setters to MessageNewChatTitle
2020-07-28 01:33:45 +06:00
Temirkhan Myrzamadi
f0d398b300
Add setters to MessageLeftChatMember
2020-07-28 01:32:28 +06:00
Temirkhan Myrzamadi
e530cabccc
Add setters to MessageNewChatMembers
2020-07-28 01:29:16 +06:00
Temirkhan Myrzamadi
d65cf4d93a
Add setters to MessageCommon
2020-07-28 01:26:35 +06:00
Temirkhan Myrzamadi
6d2476187f
Add ChosenInlineResult::from
2020-07-28 01:20:27 +06:00
Temirkhan Myrzamadi
fee9cb680d
Add setters to Message
2020-07-28 01:17:38 +06:00
Temirkhan Myrzamadi
7f92bd999a
Add setters to MaskPosition
2020-07-28 01:13:45 +06:00
Temirkhan Myrzamadi
be02c16936
Add setters to LoginUrl
2020-07-28 01:10:45 +06:00
Temirkhan Myrzamadi
1ce57eedbc
Add setters to Location
2020-07-28 01:07:18 +06:00
Temirkhan Myrzamadi
c43c5bab49
Add setters to LabeledPrice
2020-07-28 01:06:40 +06:00
Temirkhan Myrzamadi
f436cc07f5
Add setters to KeyboardButtonPollType
2020-07-28 01:01:43 +06:00
Temirkhan Myrzamadi
892dcd1fb4
Add setters to Invoice
2020-07-28 01:00:30 +06:00
Temirkhan Myrzamadi
472c35aa3b
Add setters to Invoice
2020-07-28 00:59:39 +06:00
Temirkhan Myrzamadi
1c33d80e39
Add setters to InputMessageContentContact
2020-07-28 00:55:33 +06:00
Temirkhan Myrzamadi
b3cf5be0e5
Add setters to InputMessageContentVenue
2020-07-28 00:53:01 +06:00
Temirkhan Myrzamadi
01f929dd4a
Add setters to InputMessageContentLocation
2020-07-28 00:49:30 +06:00
Temirkhan Myrzamadi
546c90346c
Add setters to InputMessageContentText
2020-07-28 00:47:07 +06:00
Temirkhan Myrzamadi
1fb3b95dca
Add setters to InputMediaDocument
2020-07-27 22:36:31 +06:00
Temirkhan Myrzamadi
9d3cf70677
String -> ParseMode in InputMediaAudio
2020-07-27 22:25:31 +06:00
Temirkhan Myrzamadi
29cb7c4fdb
Add setters to InputMediaAudio
2020-07-27 22:24:29 +06:00
Temirkhan Myrzamadi
c775c3c2b7
Add setters to InputMediaVideo
2020-07-27 22:12:56 +06:00
Temirkhan Myrzamadi
f4d1c03c17
Mark InputMediaDocument as #[non_exhaustive]
2020-07-27 22:03:42 +06:00
Temirkhan Myrzamadi
5d11f8da27
Mark InputMediaAudio as #[non_exhaustive]
2020-07-27 22:03:30 +06:00
Temirkhan Myrzamadi
0b895a19ee
Mark InputMediaAnimation as #[non_exhaustive]
2020-07-27 22:02:42 +06:00
Temirkhan Myrzamadi
683d2d69eb
Mark InputMediaVideo #[non_exhaustive]
2020-07-27 22:02:21 +06:00
Temirkhan Myrzamadi
dbfd51c0fc
Mark InputMediaPhoto ads #[non_exhaustive]
2020-07-27 22:01:21 +06:00
Temirkhan Myrzamadi
9e547766ad
Add setters to InputMediaPhoto
2020-07-27 22:00:43 +06:00
Temirkhan Myrzamadi
5044cf542b
Add setters to InlineQueryResultVoice
2020-07-27 21:57:38 +06:00
Temirkhan Myrzamadi
bc4ca24a80
Add setters to InlineQueryResultVideo
2020-07-27 21:53:03 +06:00
Temirkhan Myrzamadi
f19c59f22d
Add setters to InlineQueryResultVenue
2020-07-27 21:42:21 +06:00
Temirkhan Myrzamadi
eb75565885
Add setters to InlineQueryResultPhoto
2020-07-27 21:35:20 +06:00
Temirkhan Myrzamadi
043b174628
Add setters to InlineQueryResultMpeg4Gif
2020-07-27 21:24:24 +06:00
Temirkhan Myrzamadi
9b1aa83753
Add setters to InlineQueryResultLocation
2020-07-27 20:28:16 +06:00
Temirkhan Myrzamadi
79f02ded97
Add setters to InlineQueryResultGif
2020-07-27 20:21:32 +06:00
Temirkhan Myrzamadi
22a370e4c8
Add setters to InlineQueryResultGame
2020-07-27 20:10:14 +06:00
Temirkhan Myrzamadi
d7336fe2cb
Add setters to InlineQueryResultDocument
2020-07-27 20:08:28 +06:00
Temirkhan Myrzamadi
0c47f2b0f5
Add setters to InlineQueryResultContact
2020-07-27 20:04:38 +06:00
Temirkhan Myrzamadi
f067023b0b
Add setters to InlineQueryResultCachedVoice
2020-07-27 19:59:43 +06:00
Temirkhan Myrzamadi
1db375aca7
Add setters to InlineQueryResultCachedVideo
2020-07-27 19:57:52 +06:00
Temirkhan Myrzamadi
fa0a673919
Add setters to InlineQueryResultCachedSticker
2020-07-27 19:54:47 +06:00
Temirkhan Myrzamadi
3fcc7aefd7
Add setters to InlineQueryResultCachedPhoto
2020-07-27 19:52:03 +06:00
Temirkhan Myrzamadi
99050fb422
Add setters to InlineQueryResultCachedMpreg4Gif
2020-07-27 19:43:50 +06:00
Temirkhan Myrzamadi
49b622dc6c
Add setters to InlineQueryResultCachedGif
2020-07-27 19:39:26 +06:00
Temirkhan Myrzamadi
2ebed2cef1
Add InlineQueryResultCachedDocument::new
2020-07-27 19:35:41 +06:00
Temirkhan Myrzamadi
45922dc354
Add setters to InlineQueryResultCachedDocument
2020-07-27 19:32:49 +06:00
Temirkhan Myrzamadi
1c2df6bced
Add setters to InlineQueryResultCachedAudio
2020-07-27 19:26:56 +06:00
Temirkhan Myrzamadi
1b762c88cd
Add setters to InlineQueryResultAudio
2020-07-27 18:40:13 +06:00
Temirkhan Myrzamadi
456ebc3bfe
Add setters to InlineQueryResultArticle
2020-07-27 18:30:42 +06:00
Temirkhan Myrzamadi
b450bc09f5
Fmt
2020-07-27 18:14:20 +06:00
Temirkhan Myrzamadi
ed3e418426
Add setters to InlineQuery
2020-07-27 18:13:25 +06:00
Temirkhan Myrzamadi
9554efe23d
Add setters to InlineKeyboardMarkup
2020-07-27 17:49:14 +06:00
Temirkhan Myrzamadi
bb89c30edb
Add setters to InlineKeyboardButton
2020-07-27 17:35:05 +06:00
Temirkhan Myrzamadi
b0c78e8125
Add setters to GameHighScore
2020-07-27 17:31:23 +06:00
Temirkhan Myrzamadi
83631cc351
Add setters to Game
2020-07-27 17:29:28 +06:00
Temirkhan Myrzamadi
82df94b80d
Add setters to ForceReply
2020-07-27 17:20:11 +06:00
Temirkhan Myrzamadi
60bc928fad
Add setters to File
2020-07-27 17:18:24 +06:00
Temirkhan Myrzamadi
33e572ae56
Add setters to EncryptedPassportElementEmail
2020-07-27 17:07:01 +06:00
Temirkhan Myrzamadi
e415393d14
Add setters to EncryptedPassportElementPhoneNumber
2020-07-27 17:05:44 +06:00
Temirkhan Myrzamadi
f8a51182de
Add setters to EncryptedPassportElementTemporaryRegistration
2020-07-27 17:02:32 +06:00
Temirkhan Myrzamadi
826a1149c1
Add setters to EncryptedPassportElementPassportRegistration
2020-07-27 17:01:40 +06:00
Temirkhan Myrzamadi
55a66bd58f
Add setters to EncryptedPassportElementRentalAgreement
2020-07-27 17:01:05 +06:00
Temirkhan Myrzamadi
72dd3c1ce0
Add setters to EncryptedPassportElementBankStatement
2020-07-27 17:00:25 +06:00
Temirkhan Myrzamadi
b3c89af68c
Add setters to EncryptedPassportElementUtilityBill
2020-07-27 16:59:32 +06:00
Temirkhan Myrzamadi
ffedac94fc
Add setters to EncryptedPassportElementAddress
2020-07-27 16:56:40 +06:00
Temirkhan Myrzamadi
81ab473793
Add setters to EncryptedPassportElementInternalPassport
2020-07-27 16:54:34 +06:00
Temirkhan Myrzamadi
ba1147c794
Add setters to EncryptedPassportElementIdentityCard
2020-07-27 16:52:51 +06:00
Temirkhan Myrzamadi
e723bc4069
Add setters to EncryptedPassportElementDriverLicense
2020-07-27 16:51:29 +06:00
Temirkhan Myrzamadi
a50ba935a8
Add setters to EncryptedPassportElementPassport
2020-07-27 16:40:29 +06:00
Temirkhan Myrzamadi
baf8cf0c19
Add setters to EncryptedPassportElementPersonalDetails
2020-07-27 16:34:03 +06:00
Temirkhan Myrzamadi
5353cff3ed
Add setters to EncryptedPassportElement
2020-07-27 16:33:52 +06:00
Temirkhan Myrzamadi
f5144ec5cd
Add setters to EncryptedCredentials
2020-07-27 15:50:49 +06:00
Temirkhan Myrzamadi
3de14e7d71
Add setters to Document
2020-07-27 15:47:21 +06:00
Temirkhan Myrzamadi
2733cb561a
Add setters to Contact
2020-07-27 15:42:12 +06:00
Temirkhan Myrzamadi
bf8617da31
Add setters to ChosenInlineResult
2020-07-27 15:38:31 +06:00
Temirkhan Myrzamadi
c34cd27903
Add setters to ChatPhoto
2020-07-27 15:31:10 +06:00
Temirkhan Myrzamadi
789194bdcd
Add setters to ChatPermissions
2020-07-27 15:26:42 +06:00
Temirkhan Myrzamadi
50db42ffb6
Add setters to ChatMember
2020-07-27 15:25:21 +06:00
Temirkhan Myrzamadi
30696d3e29
Add setters to PublicChatSupergroup
2020-07-27 15:12:54 +06:00
Temirkhan Myrzamadi
4175d2aee2
Add setters to PublicChatGroup
2020-07-27 15:12:05 +06:00
Temirkhan Myrzamadi
b51c63db48
Add setters to PublicChatChannel
2020-07-27 15:11:27 +06:00
Temirkhan Myrzamadi
291ec7373b
Add setters to ChatPrivate
2020-07-27 14:58:44 +06:00
Temirkhan Myrzamadi
6c920ed00b
Add setters to ChatPublic
2020-07-27 14:40:10 +06:00
Temirkhan Myrzamadi
ad6e19201a
Add setters to Chat
2020-07-27 14:32:17 +06:00
Temirkhan Myrzamadi
8f1cb11b4d
Add setters to CallbackQuery
2020-07-27 14:23:19 +06:00
Temirkhan Myrzamadi
c5b0bb93ca
Add setters to Audio
2020-07-27 14:10:56 +06:00
Temirkhan Myrzamadi
ecae850fda
Add setters to Animation
2020-07-27 13:47:03 +06:00
Temirkhan Myrzamadi
d85b7fdab0
Add #[non_exhaustive] to all the API types
2020-07-27 13:20:33 +06:00
Temirkhan Myrzamadi
af2aa218e7
#[teloxide(transition)] -> #[teloxide(subtransition)]
2020-07-27 00:52:03 +06:00
Temirkhan Myrzamadi
d43d74d80c
SubTransition -> Subtransition, SubTransitionOutputType -> SubtransitionOutputType
2020-07-27 00:48:19 +06:00
Temirkhan Myrzamadi
54135aae3c
Fix broken links in the docs
2020-07-27 00:32:44 +06:00
Temirkhan Myrzamadi
8d9efbe67c
Type Aux; -> Transition
2020-07-27 00:19:46 +06:00
Temirkhan Myrzamadi
38a1f470ad
Use the default characters per line limit
2020-07-26 23:47:02 +06:00
Temirkhan Myrzamadi
f9c192aad0
Fix the docs
2020-07-26 23:37:56 +06:00
Temirkhan Myrzamadi
54a6bf440b
Add an auxiliary parameter to (sub)transitions
2020-07-26 23:16:49 +06:00
Temirkhan Myrzamadi
796f446a46
Add cfg to the whole up_state.rs
2020-07-26 14:58:55 +06:00
Temirkhan Myrzamadi
477d8a67d3
Remove DialogueWithCx::unpack
2020-07-26 13:46:43 +06:00
Temirkhan Myrzamadi
a6a0d09729
Update the docs of dispatching::dialogue
2020-07-26 13:23:32 +06:00
Temirkhan Myrzamadi
71f38bcb92
Small refinements
2020-07-26 13:18:29 +06:00
Temirkhan Myrzamadi
b255dfaf61
Document UpState
2020-07-26 04:43:08 +06:00
Temirkhan Myrzamadi
c7d97be8a8
Remove up!
2020-07-26 04:34:21 +06:00
Temirkhan Myrzamadi
0c688b2bd2
append_field<_, T2, _, _> -> T2::up
2020-07-26 04:09:57 +06:00
Temirkhan Myrzamadi
094a95e8d8
Add append_field
2020-07-26 03:10:48 +06:00
Temirkhan Myrzamadi
d901529ce3
Fix the doc test
2020-07-25 22:56:07 +06:00
Temirkhan Myrzamadi
bf114de249
A nicer approach to manage dialogues via #[derive(Transition)] + #[teloxide(transition)]
2020-07-25 22:37:58 +06:00
Temirkhan Myrzamadi
840fe93b61
Upload media/PING_PONG_BOT.gif
2020-07-25 19:57:20 +06:00
Temirkhan Myrzamadi
56be9a2c59
Use three dots instead of the exclamation in the examples
2020-07-25 19:46:05 +06:00
Temirkhan Myrzamadi
1006a7d187
Avoid code duplication in src/bot/mod.rs
2020-07-25 04:11:58 +06:00
Temirkhan Myrzamadi
4c78414771
Fix the docs of client_from_env
2020-07-25 04:08:04 +06:00
Temirkhan Myrzamadi
55ab94b1c4
Use sound_bot in src/bot/mod.rs
2020-07-25 04:07:36 +06:00
Temirkhan Myrzamadi
0fae235597
Use sound_bot in client_from_env
2020-07-25 03:57:38 +06:00
Temirkhan Myrzamadi
2a5d88df0e
Fix dispatching::dialogue
2020-07-25 01:40:12 +06:00
Temirkhan Myrzamadi
8a961e8fdf
Fix the code example in dispatching::dialogue
2020-07-25 01:16:29 +06:00
Temirkhan Myrzamadi
5f67d633bc
Refer to the latest version of reqwest
2020-07-25 01:04:42 +06:00
Temirkhan Myrzamadi
2a684f9906
Document client_from_env
2020-07-25 01:02:46 +06:00
Temirkhan Myrzamadi
3b26f747b7
Export client_from_env into utils
2020-07-25 00:55:36 +06:00
Temirkhan Myrzamadi
51a98d5d86
Fix the docs of dispatching::dialogue::next
2020-07-25 00:53:49 +06:00
Temirkhan Myrzamadi
bdab7afe64
Fix the docs of dispatching::dialogue
2020-07-25 00:42:53 +06:00
Temirkhan Myrzamadi
a79bb7ba4f
Fixing the docs...
2020-07-24 23:30:54 +06:00
Temirkhan Myrzamadi
74c546ec6a
Make KnownApiErrorKind public
2020-07-24 22:58:34 +06:00
Temirkhan Myrzamadi
712d76032e
Fix the docs of BotBuilder
2020-07-24 22:50:13 +06:00
Temirkhan Myrzamadi
18b813c159
Unify TransitionIn with TransitionOut
2020-07-24 19:26:49 +06:00
Temirkhan Myrzamadi
602519cdab
Merge branch 'master' into rework-dialogue-bot
2020-07-24 18:26:25 +06:00
Temirkhan Myrzamadi
008e8505c5
Add BotDialogue
2020-07-24 18:05:05 +06:00
Temirkhan Myrzamadi
e14b2b9fd0
Fix compilation
2020-07-24 16:54:56 +06:00
Temirkhan Myrzamadi
5db72a26a2
Import Arc into update_listeners.rs
2020-07-24 16:38:12 +06:00
Temirkhan Myrzamadi
4a314c894d
Fix rustfmt check
2020-07-24 16:31:43 +06:00
Temirkhan Myrzamadi
859f782d8b
Merge branch 'master' into fix-bot-silence
2020-07-24 16:28:29 +06:00
Temirkhan Myrzamadi
23aa260d68
Extract Bot from Arc
2020-07-17 16:04:25 +06:00
Dmytro Polunin
7ed92228a7
Merge branch 'master' into bot-builder
2020-07-16 21:57:40 +03:00
Temirkhan Myrzamadi
e996ffffb4
Forbid unsafe code
2020-07-16 21:41:14 +06:00
Temirkhan Myrzamadi
9dbff2b522
Move more settings into Bot
2020-07-16 21:04:11 +06:00
Temirkhan Myrzamadi
9eeb23ce4b
Merge branch 'master' into fix-bot-silence
2020-07-16 20:16:10 +06:00
Temirkhan Myrzamadi
ca8ffba11f
Fix Clippy
2020-07-16 20:02:39 +06:00
Temirkhan Myrzamadi
8990b4a785
Implement a default ParseMode
2020-07-16 19:52:40 +06:00
Temirkhan Myrzamadi
772088abd3
Document BotBuilder
2020-07-16 19:14:32 +06:00
Temirkhan Myrzamadi
5a73654e13
Deprecate Bot::{from_env_with_client, new, with_client}
2020-07-16 19:01:52 +06:00
Temirkhan Myrzamadi
f2bc67617d
Add BotBuilder
2020-07-16 18:52:39 +06:00
Temirkhan Myrzamadi
a13482fc49
Fmt
2020-07-10 23:36:37 +06:00
Dmytro Polunin
2e6ca03d5c
Added Sync, Send, 'static bounds on Box<dyn Error>
2020-07-08 13:16:25 +03:00
Temirkhan Myrzamadi
981e79e1c7
Add 'Connection: keep-alive' to net::download
2020-07-08 06:21:40 +06:00
Temirkhan Myrzamadi
f5941973db
Wait 10 seconds if a server error occurs
2020-07-08 06:19:47 +06:00
Temirkhan Myrzamadi
3866fd0d7e
Fix bot's inability to respond in long time periods
...
Closes https://github.com/teloxide/teloxide/issues/223 .
2020-07-08 05:52:42 +06:00
p0lunin
3fa827ab0a
fixed typos
2020-07-06 16:41:02 +03:00
Dmytro Polunin
66569cafa2
Merge branch 'master' into add_string_to_api_error_kind_other
2020-07-06 16:03:25 +03:00
p0lunin
4eae781c25
fmt
2020-07-06 16:01:07 +03:00
p0lunin
2c1ba3cf91
removed ApiErrorKindKnown::Other
2020-07-06 15:59:56 +03:00
p0lunin
0393a8b53c
splited ApiErrorKind at known and unknown
2020-07-06 15:54:05 +03:00
p0lunin
fe8146767e
removed editor-folds
2020-07-06 15:42:07 +03:00
Temirkhan Myrzamadi
9442ee5a7f
Merge pull request #225 from teloxide/error_instead_of_unwrap
...
Return Result instead of unwrap() in file_to_part method
2020-07-04 23:08:43 +06:00
p0lunin
5ceeae7f07
update documentation
2020-07-04 20:02:45 +03:00
p0lunin
44584938f5
renamed RequestFile to RequestWithFile
2020-07-04 20:00:48 +03:00
Temirkhan Myrzamadi
56dadfbb34
Return Arc<RedisServer>
2020-07-04 21:02:07 +06:00
Temirkhan Myrzamadi
33910864c7
Merge branch 'master' into redis
2020-07-04 20:34:07 +06:00
p0lunin
de6280150c
fmt
2020-07-04 17:29:05 +03:00
p0lunin
e1932bc68b
removed unwrap() by propagate error to user code
2020-07-04 17:28:46 +03:00
p0lunin
c04032cdf0
remove add method from FormBuilder
2020-07-04 16:46:00 +03:00
Temirkhan Myrzamadi
5f9e0b46b2
Fix impl Error for ParseError
2020-07-04 00:33:35 +06:00
p0lunin
82439c2a4c
added impl Display, Error for ParseError
2020-07-03 21:20:33 +03:00
p0lunin
5216347ece
fixed wrong documentation
2020-07-03 20:31:39 +03:00
p0lunin
93ebcc083d
fmt
2020-07-03 20:17:20 +03:00
p0lunin
0345d85cb8
remove unnecessary attributes
2020-07-03 20:15:55 +03:00
p0lunin
4ceb1253dd
Merge branch 'master' of https://github.com/teloxide/teloxide into commands
...
Conflicts:
examples/admin_bot/src/main.rs
examples/simple_commands_bot/src/main.rs
src/dispatching/dispatcher_handler_rx_ext.rs
2020-07-03 20:11:25 +03:00
Temirkhan Myrzamadi
177656c00c
Document RedisStorage
2020-07-01 20:58:06 +06:00
Temirkhan Myrzamadi
fb6156a3b9
Merge branch 'master' into redis
2020-07-01 18:53:39 +06:00
Temirkhan Myrzamadi
0ac679c443
Remove the frunk dependency
2020-07-01 18:52:53 +06:00
Temirkhan Myrzamadi
ee9166999a
Remove a redundant import
2020-06-26 18:47:42 +06:00
Temirkhan Myrzamadi
37a0ac8ef8
Merge branch 'master' into redis
2020-06-26 18:42:17 +06:00
Temirkhan Myrzamadi
9cab81b8bf
Fix the docs
2020-06-26 18:33:40 +06:00
Temirkhan Myrzamadi
eabc77caab
Remove wrap_dialogue!
2020-06-26 18:18:31 +06:00
p0lunin
b9cb494797
drowned out clippy
2020-06-24 20:54:41 +03:00
p0lunin
9944524e34
added Box<dyn Error> in IncorrectFormat error
2020-06-24 19:18:12 +03:00
Temirkhan Myrzamadi
7a232a4c51
Merge branch 'master' into redis
2020-06-19 08:55:19 +03:00
Temirkhan Myrzamadi
e47a73088d
Add a comment about tests (src/utils/command.rs)
2020-06-07 15:39:12 +06:00
p0lunin
1e71268748
fmt
2020-06-06 21:32:51 +03:00
p0lunin
5e276d65f4
refactoring
2020-06-06 20:50:59 +03:00
p0lunin
5f27eaf6d1
fixes in tests
2020-06-06 20:45:20 +03:00
p0lunin
50b2b73f26
small fixes
2020-06-06 20:30:41 +03:00
p0lunin
7d3a0ca7eb
Merge remote-tracking branch 'origin/commands' into commands
...
# Conflicts:
# src/utils/command.rs
2020-06-06 20:17:07 +03:00
p0lunin
1475b62e57
moved teloxide::utils::command::tests to tests/command.rs
2020-06-06 20:14:42 +03:00
Temirkhan Myrzamadi
594d3e7d19
#[command] only after #[derive]
2020-06-05 13:12:46 +06:00
Temirkhan Myrzamadi
ae43f1f7ee
Improve the docs of utils::command
2020-06-05 13:10:29 +06:00
p0lunin
54276aa8ba
added documentation, fixed doc-tests
2020-06-02 23:26:57 +03:00
p0lunin
b3123258aa
added tests + renamed fields
2020-06-01 22:36:31 +03:00
p0lunin
2455caa1cf
added tests for typed enums
2020-05-30 21:23:49 +03:00
Temirkhan Myrzamadi
d2f4194d80
Add <E> type parameter to TransitionIn
2020-05-26 17:20:57 +06:00
Temirkhan Myrzamadi
92248aaeb3
Fix the docs
2020-05-26 17:18:22 +06:00
Temirkhan Myrzamadi
a6144d7a26
Add UpdateWithCx::answer_str
2020-05-26 16:08:54 +06:00
Temirkhan Myrzamadi
7fc58421b0
Add dialogue::{TransitionIn, TransitionOut}
2020-05-26 15:35:28 +06:00
Temirkhan Myrzamadi
f95826e9f8
Add DialogueWithCx::unpack
2020-05-26 15:05:22 +06:00
Temirkhan Myrzamadi
f3fb72d527
DispatcherHandlerCx -> UpdateWithCx, DialogueDispatcherHandler -> DialogueWithCx
2020-05-26 15:01:57 +06:00
Temirkhan Myrzamadi
18f323b82e
Fix the docs
2020-05-24 22:37:22 +06:00
Temirkhan Myrzamadi
3ffb2c70fb
Document the newest macros
2020-05-24 22:28:08 +06:00
Temirkhan Myrzamadi
a33bd7205c
Separate modules of examples/dialogue_bot
2020-05-24 18:55:13 +06:00
Temirkhan Myrzamadi
572d41fbf8
Extract FavouriteMusic into favourite_music.rs (examples/dialogue_bot)
2020-05-24 18:39:41 +06:00
Temirkhan Myrzamadi
c9393aa5d6
Prettify examples/dialogues_bot a little bit
2020-05-24 17:36:20 +06:00
Temirkhan Myrzamadi
01dc7a0d42
Improve wrap_dialogue!
2020-05-24 17:15:46 +06:00
Temirkhan Myrzamadi
6ff1800f12
Add auxiliary dialogues macros
2020-05-24 17:08:40 +06:00
Temirkhan Myrzamadi
963218bba0
Use a coproduct as a dialogue FSM
2020-05-24 14:19:46 +06:00
Temirkhan Myrzamadi
b0940df9bd
Avoid repetition in DialogueDispatcherHandlerCx
2020-05-24 01:02:17 +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
p0lunin
d5f3864921
wip
2020-04-25 20:16:27 +03:00
Maximilian Siling
82d0958c91
Make Serializer a trait, so anyone can implement it
2020-04-19 20:09:00 +03:00
Temirkhan Myrzamadi
478e7038a6
Merge branch 'master' into redis
2020-04-19 19:27:03 +03:00
Maximilian Siling
a67d896d26
Don't reconnect to Redis every time
2020-04-19 19:24:24 +03:00
Maximilian Siling
798102a7d7
Add Redis storage & example bot using it
2020-04-19 18:31:23 +03:00
Temirkhan Myrzamadi
46338c464f
Refactor error logging if Update is failed to parse
2020-03-31 21:41:00 +06:00