mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-09 16:33:53 +00:00
closes #103: files incorrectly padded to nearest 16 bytes
This commit is contained in:
parent
49969e46cf
commit
d64c5c0c1e
3 changed files with 5 additions and 4 deletions
|
|
@ -177,7 +177,7 @@ var uploadedFile = await client.UploadFileAsync(@"C:\Pictures\flower.jpg");
|
|||
// Photo 3 specified by external url:
|
||||
const string photoUrl = "https://picsum.photos/310/200.jpg";
|
||||
|
||||
var inputMedias = new InputMedia[]
|
||||
var inputMedias = new List<InputMedia>
|
||||
{
|
||||
photoFromTelegram, // PhotoBase has implicit conversion to InputMediaPhoto
|
||||
new InputMediaUploadedPhoto { file = uploadedFile },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue