wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
996 stars 164 forks source link

How to send photos without compression? #104

Closed Roman001006 closed 2 years ago

Roman001006 commented 2 years ago

Hello! Excuse my English, how can I send a photo without compression? I have used your examples and they work great. The fact is, if I send photos or a file through the official client without compression, then I can get the file type, but if I send a file or photo type through my application, the update comes with an empty " " .

I need to send a photo like in screenshot 1 1

If I send through my program, the result is as in screenshot 2 2

Sorry if the question seems stupid, I'm just starting to learn programming. Looking forward to your reply.

wiz0u commented 2 years ago

specify "image/jpeg" as mimeType parameter to send a JPEG as document rather than inline photo

Roman001006 commented 2 years ago

укажите «image/jpeg» в качестве параметра mimeType, чтобы отправить JPEG как документ, а не встроенную фотографию

Thanks a lot! I thought the answer was on the surface