Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In calling 'SendVideo' method, an error occurs #44

Closed
Hamix opened this issue Oct 11, 2015 · 1 comment
Closed

In calling 'SendVideo' method, an error occurs #44

Hamix opened this issue Oct 11, 2015 · 1 comment

Comments

@Hamix
Copy link

Hamix commented Oct 11, 2015

hi
Error:
A task was canceled.

Code:

var stream = new FileStream(fi.FullName, FileMode.Open);
var fileToSend = new FileToSend(fi.Name, stream);
await rBot.SendVideo(update.Message.Chat.Id, fileToSend,0, "", 0, Menus.UserMenu.UserMenuKeyboard);

File info:
.mp4, 4m

I think request times out and throws a WebException.
ty.

@MrRoundRobin
Copy link
Member

Sorry for the delayed answer, you are correct, the default timeout for the HTTPClient is 100 seconds.

I'll increase this for file uploads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants