mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Updated readme
This commit is contained in:
parent
69700fdad0
commit
84cbe0afc8
3 changed files with 151 additions and 20 deletions
|
|
@ -183,9 +183,12 @@ namespace TLSharp.Core
|
|||
return inputFile;
|
||||
}
|
||||
|
||||
public async Task<Boolean> SendMediaMessage(InputPeer inputPeer, InputMedia inputMedia)
|
||||
public async Task<Boolean> SendMediaMessage(int contactId, InputFile file)
|
||||
{
|
||||
var request = new Message_SendMediaRequest(inputPeer, inputMedia);
|
||||
var request = new Message_SendMediaRequest(
|
||||
new InputPeerContactConstructor(contactId),
|
||||
new InputMediaUploadedPhotoConstructor(file));
|
||||
|
||||
await _sender.Send(request);
|
||||
await _sender.Recieve(request);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue