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

Problem with sending files, images, videos and documents

Open webiox opened this issue 10 years ago • 5 comments

Hi, I get "A task was canceled" error when I upload various types of files through bot.SendDocument(...), SendAudio(...), or other sending files options! It seems that request time is out or something like this.

Update: I don't have any problem with sending files smaller than 4mb! Also I'm using Telegram.Bot version 9.0.0

webiox avatar May 16 '16 19:05 webiox

Hi, have you tried to increasing the upload timeout? Bot.UploadTimeout defaults to 1 minute

MrRoundRobin avatar May 16 '16 19:05 MrRoundRobin

Thanks for your prompt response Robin, I'm gonna try it! 👍

webiox avatar May 16 '16 19:05 webiox

Hi @webiox

I'm gonna try it!

did you tried it?? and what was the result?

D4NTESPARDA avatar Jun 08 '16 09:06 D4NTESPARDA

@webiox any update?

MrRoundRobin avatar Jun 28 '16 16:06 MrRoundRobin

I'm sorry for my delay, "Bot.UploadTimeout" worked perfectly fine. thanks @MrRoundRobin!

webiox avatar Jun 29 '16 07:06 webiox