Skip to content

Commit fba817d

Browse files
committedJan 29, 2022
Bump tdlib/td@789b9c0 and Closes #7 fewensa/telegram-client#31 and update README/version
1 parent 8e818fe commit fba817d

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed
 

‎README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,19 @@ rtdlib
1313

1414
```toml
1515
[dependencies]
16-
rtdlib = "0.8.*"
16+
rtdlib = "1.8.*"
1717
```
1818

1919
The default, `rtdlib` only have `td` types, not have call tdjson dylib, if you want , you need add `features` to your dependency.
2020

2121
```toml
2222
[dependencies]
23-
rtdlib = { version = "0.8.*", features = "sys" }
23+
rtdlib = { version = "1.8.*", features = "sys" }
2424
```
2525

2626
## version
2727

28-
Version mapping
29-
30-
| rtdlib | td |
31-
|---------------|-------------|
32-
| 0.* | [master@fa8feef](https://github.com/tdlib/td/commit/fa8feefed70d64271945e9d5fd010b957d93c8cd) |
33-
| 1.8.* | 1.8.* |
34-
35-
The version `1.3`, `1.4`, `1.5`, `1.6`, `1.7` is outdated. the reason you can read
36-
37-
- [A new telegram client update](https://github.com/fewensa/telegram-client/issues/29)
38-
- [UPDATE_APP_TO_LOGIN](https://github.com/tdlib/td/issues/1758)
39-
28+
Please read: [version](https://github.com/fewensa/telegram-client/blob/master/version.md)
4029

4130
# Example
4231

‎src/types/background.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Background {
1616
#[serde(rename(serialize = "@extra", deserialize = "@extra"))]
1717
extra: Option<String>,
1818
/// Unique background identifier
19-
id: isize,
19+
#[serde(deserialize_with = "serde_aux::field_attributes::deserialize_number_from_string")] id: isize,
2020
/// True, if this is one of default backgrounds
2121
is_default: bool,
2222
/// True, if the background is dark and is recommended to be used with dark theme

‎src/types/check_chat_username_result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub enum CheckChatUsernameResult {
2323
CheckChatUsername(CheckChatUsername),
2424
/// The username can be set
2525
Ok(CheckChatUsernameResultOk),
26-
/// The user has too much chats with username, one of them must be made private first
26+
/// The user has too many chats with username, one of them must be made private first
2727
PublicChatsTooMuch(CheckChatUsernameResultPublicChatsTooMuch),
2828
/// The user can't be a member of a public supergroup
2929
PublicGroupsUnavailable(CheckChatUsernameResultPublicGroupsUnavailable),
@@ -191,7 +191,7 @@ impl AsRef<CheckChatUsernameResultOk> for RTDCheckChatUsernameResultOkBuilder {
191191

192192

193193

194-
/// The user has too much chats with username, one of them must be made private first
194+
/// The user has too many chats with username, one of them must be made private first
195195
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
196196
pub struct CheckChatUsernameResultPublicChatsTooMuch {
197197
#[doc(hidden)]

0 commit comments

Comments
 (0)
Please sign in to comment.