justdmitry / NetTelegramBotApi

C# client library for building Telegram bot
MIT License
74 stars 28 forks source link

UTF8 file name error #5

Closed farazp closed 9 years ago

farazp commented 9 years ago

hi when I want to send file with UTF8 filename, don't show correct file name, for example my file name is فارسی.docx but at reception user show filename like: =?utf-8?B?RDpcVXNlcnNcQXBhY2hpXERvY3VtZW50c1zYrdmF2K8g2YXYutix2KjZii5kb2N4?=

justdmitry commented 9 years ago

It looks that Telegram servers do not understand 'extended' filename* param in header value and expect utf-8 string in regular filename...

Fixing this seems like a hack, but I have no choice.