Skip to content

Commit 501ebb9

Browse files
authored
Merge pull request #13 from nblockchain/layerUpdate
Layer update (to 108)
2 parents 58df196 + 9b68b69 commit 501ebb9

File tree

1,326 files changed

+25651
-8219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,326 files changed

+25651
-8219
lines changed

.github/workflows/nugetUpload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
$version = $Env:GITHUB_REF.Substring($tagPrefix.Length)
2929
}
3030
Else {
31-
$baseVersion = "0.1.1"
31+
$baseVersion = "0.3.1"
3232
$version = "$baseVersion--date$date.git-$hash"
3333
}
3434

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ TgSharp provides two wrappers for sending photo and document:
122122
await client.SendUploadedPhoto(new TLInputPeerUser() { UserId = user.Id }, fileResult, "kitty");
123123
await client.SendUploadedDocument(new TLInputPeerUser() { UserId = user.Id },
124124
fileResult,
125-
"some zips", //caption
126125
"application/zip", //mime-type
127126
128127
//document attributes, such as file name
@@ -138,7 +137,8 @@ To download a file you should call the **GetFile** method:
138137
{
139138
AccessHash = document.AccessHash,
140139
Id = document.Id,
141-
Version = document.Version
140+
FileReference = document.FileReference,
141+
ThumbSize = "250x250"
142142
},
143143

144144
//size of fileChunk you want to retrieve
@@ -152,10 +152,8 @@ You can see the Full code at [DownloadFileFromContactTest](https://github.com/nb
152152

153153
For your convenience TgSharp have wrappers for several Telegram API methods. You could add your own, see details below.
154154

155-
1. IsPhoneRegisteredAsync
156155
1. SendCodeRequestAsync
157156
1. MakeAuthAsync
158-
1. SignUpAsync
159157
1. GetContactsAsync
160158
1. SendMessageAsync
161159
1. SendTypingAsync
@@ -187,23 +185,22 @@ Don't panic. You can call any method with help of `SendRequestAsync` function. F
187185

188186
**Where can you find a list of requests and its parameters?**
189187

190-
The only way is [Telegram API docs](https://core.telegram.org/methods). Yes, it's outdated. But there is no other source.
191-
Latest scheme in JSON format you can find [here](https://gist.github.com/aarani/b22b7cda024973dff68e1672794b0298)
188+
The only way is [Telegram API docs](https://core.telegram.org/methods). Yes, it's no longer outdated.
189+
Latest scheme in JSON format you can find [here](https://core.telegram.org/schema/json)
192190

193191

194192
## What things can I help on (Project Roadmap)?
195193

196194
* Add Updates handling via events (WIP PR: https://github.com/sochix/TLSharp/pull/892 )
197195
* GithubActions CI job for running tests
198-
* Update to latest Layer (WIP PR: https://github.com/nblockchain/TgSharp/pull/5 ).
199196
* Upgrade to .NETStandard 2.0.
200197

201198

202199
# FAQ
203200

204201
#### What API layer is supported?
205202

206-
Layer 66. Thanks to Afshin Arani for his TLGenerator
203+
Layer 108. Thanks to Afshin Arani for his TLGenerator
207204

208205

209206
#### I get a xxxMigrationException or a MIGRATE_X error!

src/TeleSharp.Generator/Models/TlSchema.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/TeleSharp.TL/TL/Account/TLPassword.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/TeleSharp.TL/TL/Contacts/TLLink.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)