Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

Problem with sending files in 11.1.0 pre

Open webiox opened this issue 10 years ago • 3 comments

I've updated to 11.1.0 pre. In this version, when I try to send any kind of files using "SendPhotoAsync()" or so on, I get "File Type not supported" exception and FileToSend.Type is "Unknown".

webiox avatar Nov 26 '16 12:11 webiox

do you want to send a file stream or a file by id?

MrRoundRobin avatar Nov 26 '16 13:11 MrRoundRobin

File stream I mean.

webiox avatar Nov 26 '16 13:11 webiox

How do you create the FileToSend object?

if you don't use the constructor maybe you forogt to set the file type manualy.

i'll update the beta, that this is not required in future

MrRoundRobin avatar Nov 28 '16 01:11 MrRoundRobin