Waffle
f4507bd3d2
Fix: types fields privacy (make fields of some types public)
...
The typos were found with `grep`:
```text
; grep -r -P "^ \w{2,}: .+, *$" ./src/types/*
./src/types/dice.rs: emoji: DiceEmoji,
./src/types/dice.rs: value: i32,
./src/types/keyboard_button.rs: contact: Option<True>,
./src/types/keyboard_button.rs: location: Option<True>,
./src/types/keyboard_button.rs: poll: Option<KeyboardButtonPollType>,
./src/types/message.rs: message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged,
./src/types/passport_element_error.rs: message: String,
./src/types/passport_element_error.rs: kind: PassportElementErrorKind,
./src/types/sticker_set.rs: thumb: Option<PhotoSize>,
```
`src/types/keyboard_button.rs` can be ignored since in just contains private
helper structure.
Fields made public:
- `Dice::{emoji, value}`
- `MessageMessageAutoDeleteTimerChanged::message_auto_delete_timer_changed`
- `PassportElementError::{message, kind}`
- `StickerSet::thumb`
2021-03-19 12:28:05 +03:00
Waffle
2cdadf774f
fix nightly-feature name
2021-03-18 14:32:03 +03:00
Waffle Lapkin
a7a329a53a
Merge pull request #65 from teloxide/refactor_reply_markup
...
refactor reply markup
2021-03-16 15:32:11 +03:00
Waffle
36557573aa
Refactor ReplyMarkup
...
This commit tries to make using ReplyMarkup less noisy. It
- Renames `ReplyMarkup::{InlineKeyboardMarkup => InlineKeyboard, ReplyKeyboardMarkup => Keyboard, ReplyKeyboardRemove => KeyboardRemove}`
- Adds `inline_kb`, `keyboad`, `kb_remove` and `force_reply` `ReplyMarkup`
consructors
- Renames `ReplyKeyboardMarkup` => `KeyboardMarkup`
- Renames `ReplyKeyboardRemove` => `KeyboardRemove`
- Removes useless generic param from `ReplyKeyboardMarkup::new` and
`InlineKeyboardMarkup::new`
- Changes parameters order in `ReplyKeyboardMarkup::append_to_row` and
`InlineKeyboardMarkup::append_to_row`
2021-03-16 15:14:32 +03:00
Waffle Lapkin
510b0c9ac0
Make MediaContact::contact public
2021-03-16 14:16:40 +03:00
Waffle
3489890230
fix CI
2021-03-16 14:06:22 +03:00
Waffle
084caa9c12
fix doc link
2021-03-16 13:53:52 +03:00
Waffle
c8939dff09
Turn on nightly clippy again
...
The fix of the bug finally got released
2021-03-15 23:50:09 +03:00
Waffle
aef88f97c3
Update to tba API version 5.1
2021-03-15 23:50:02 +03:00
Waffle
9abb6d6884
Small fixes
2021-03-14 23:18:07 +03:00
Waffle
467477d38e
Update changelog & readme
2021-03-14 22:59:49 +03:00
Waffle
fa5ab5aa7c
Update methods to tba 5.0
2021-03-14 22:55:25 +03:00
Waffle
20c67a18c5
Update types (tba API 5.0)
...
See more: https://core.telegram.org/bots/api#november-4-2020
2021-03-14 22:52:35 +03:00
Temirkhan Myrzamadi
e400fb16e7
Use serde_json::from_value in Update::try_parse
2021-03-13 21:38:05 +06:00
Temirkhan Myrzamadi
cd9a98163c
Fix SemiparsedVec::from
2021-03-13 21:11:54 +06:00
Temirkhan Myrzamadi
32b446d26c
Move log::error! on update parsing failure to Update::try_parse
2021-03-13 21:05:45 +06:00
Temirkhan Myrzamadi
61eed38c32
Fix SemiparsedVec
2021-03-13 17:46:16 +06:00
Temirkhan Myrzamadi
f87b4e51e6
Merge branch 'master' into fault_tolerant_get_updates
2021-03-06 12:11:38 +03:00
Waffle
b3d8d70a7c
remove unused use
2021-03-06 10:58:18 +03:00
Waffle
7600a88312
Fix SetWebhook
...
Make `GetUpdates::allowed_updates` optional
2021-03-06 00:48:06 +03:00
Temirkhan Myrzamadi
b465da5f16
Derive Clone for AutoSend
2021-02-28 22:32:50 +06:00
Temirkhan Myrzamadi
c2aaa724f4
NonStrictVec -> SemiparsedVec
2021-02-27 18:52:11 +06:00
Temirkhan Myrzamadi
466dbe6f8d
Fix a documentation typo
2021-02-27 18:38:02 +06:00
Waffle
7e43c4d321
Add GetUpdatesFaultTolerant
2021-02-27 01:07:57 +03:00
Waffle
7025de58f5
Fix typos in payloads
...
- `get_updates`: `offset` `i64` -> `i32`
- `send_location`: make `live_period` optional
2021-02-22 11:30:13 +03:00
Waffle
dcdba78285
Fix send_contact singnature
...
- `phone_number: f64` -> `phone_number: String`
- `first_name: f64` -> `first_name: String`
2021-02-22 08:47:50 +03:00
Waffle
7c18750a8f
Remove dbg! print
2021-02-17 14:23:13 +03:00
Waffle
80329f8a1e
Throttle: make comment up to date & add channel fn
2021-02-16 19:07:50 +03:00
Waffle
72306c39d9
Limit queue growth in throttle
2021-02-16 18:49:18 +03:00
Waffle
669d6c95be
Make some cleanup of throttle
2021-02-16 18:34:19 +03:00
Waffle
417b8eb1e1
Add #[non_exhaustive]
on InputFile
2021-02-16 17:16:27 +03:00
Waffle
8abf3863e5
Future proof multipart requests
2021-02-16 17:16:20 +03:00
Temirkhan Myrzamadi
557002b43a
Merge pull request #46 from teloxide/refactor-throttle
...
Refactor requests throttling
2021-02-15 23:17:29 +03:00
Temirkhan Myrzamadi
0d25d357d9
Reformat throttle.rs
2021-02-16 02:09:06 +06:00
Temirkhan Myrzamadi
8deaac04fa
Fix Clippy
2021-02-16 02:03:04 +06:00
Temirkhan Myrzamadi
65c98741db
Apply suggestions from the review
2021-02-16 01:57:59 +06:00
Temirkhan Myrzamadi
916a774c88
Update src/adaptors/throttle.rs
...
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-02-15 22:44:19 +03:00
Temirkhan Myrzamadi
d58b21c42f
Refactoring
2021-02-16 00:50:46 +06:00
Temirkhan Myrzamadi
3129d709fe
Small enhancements
2021-02-15 16:46:31 +06:00
Temirkhan Myrzamadi
3485acb2b4
Merge pull request #47 from teloxide/update_changelog
...
update changelog
2021-02-15 11:43:57 +03:00
Waffle
91220befb6
fix warning
2021-02-15 00:35:53 +03:00
Temirkhan Myrzamadi
d8c16d420d
refactor(throttle): small renamings
2021-02-12 18:20:20 +06:00
Waffle
ab76ec07f2
fix docs
2021-02-07 02:41:29 +03:00
Waffle
21ecc39dc7
fix test
2021-02-07 01:50:53 +03:00
Waffle
fc88c72a26
Suppress clippy::upper_case_acronyms for Currency and CountryCode
2021-02-06 19:25:36 +03:00
Waffle
8befcffe26
Fix naming that triggers clippy::upper_case_acronyms lint
...
Rename
- ParseMode::{HTML => Html}
- ApiError::{
InvalidQueryID => InvalidQueryId,
ButtonURLInvalid => ButtonUrlInvalid,
WrongFileID => WrongFileId,
WebhookRequireHTTPS => WebhookRequireHttps,
WrongHTTPurl => WrongHttpUrl,
}
2021-02-06 19:23:16 +03:00
Waffle
ec58a59903
Fix SendMediaGroup return type
...
Message -> Vec<Message>
2021-02-05 21:32:21 +03:00
Waffle
311a5b18fe
fix docs
2021-01-26 18:39:10 +03:00
Waffle
0e43c32b82
clippy
2021-01-26 18:31:15 +03:00
Waffle
eaf72bd97d
remove unused function
2021-01-26 16:53:49 +03:00