mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
README.md: update samples to match Layer 108 API
This commit is contained in:
parent
3cb0ef63ca
commit
f2bdf845e9
|
|
@ -122,7 +122,6 @@ TgSharp provides two wrappers for sending photo and document:
|
|||
await client.SendUploadedPhoto(new TLInputPeerUser() { UserId = user.Id }, fileResult, "kitty");
|
||||
await client.SendUploadedDocument(new TLInputPeerUser() { UserId = user.Id },
|
||||
fileResult,
|
||||
"some zips", //caption
|
||||
"application/zip", //mime-type
|
||||
|
||||
//document attributes, such as file name
|
||||
|
|
@ -138,7 +137,8 @@ To download a file you should call the **GetFile** method:
|
|||
{
|
||||
AccessHash = document.AccessHash,
|
||||
Id = document.Id,
|
||||
Version = document.Version
|
||||
FileReference = document.FileReference,
|
||||
ThumbSize = "250x250"
|
||||
},
|
||||
|
||||
//size of fileChunk you want to retrieve
|
||||
|
|
@ -152,10 +152,8 @@ You can see the Full code at [DownloadFileFromContactTest](https://github.com/nb
|
|||
|
||||
For your convenience TgSharp have wrappers for several Telegram API methods. You could add your own, see details below.
|
||||
|
||||
1. IsPhoneRegisteredAsync
|
||||
1. SendCodeRequestAsync
|
||||
1. MakeAuthAsync
|
||||
1. SignUpAsync
|
||||
1. GetContactsAsync
|
||||
1. SendMessageAsync
|
||||
1. SendTypingAsync
|
||||
|
|
@ -203,7 +201,7 @@ Latest scheme in JSON format you can find [here](https://gist.github.com/aarani/
|
|||
|
||||
#### What API layer is supported?
|
||||
|
||||
Layer 66. Thanks to Afshin Arani for his TLGenerator
|
||||
Layer 108. Thanks to Afshin Arani for his TLGenerator
|
||||
|
||||
|
||||
#### I get a xxxMigrationException or a MIGRATE_X error!
|
||||
|
|
|
|||
Loading…
Reference in a new issue