Closed Ramin-Bateni closed 6 years ago
I've not been able to reproduce your problem.
Have you tried to send video note manually to check if the problem isn't in the video file itself (e.g. using Postman or Insomnia rest clients)?
@Ramin-Bateni First, try this video that we use in our sys integ tests:
Telegram decides about how to render the video. It should be because of either resolution or length.
@pouladpld, It worked with the file that you linked to it.👍
Then now the question is why my video failed?
In the other words:
What are all the video file requirements (require format) to make a VideoNote
successfully?
I told you why. Convert your video to that format, resolution, and length.
Ask @botsupport
for more details and please let us know the answer.
@botsupport:
They should be squared (same height and width) ;)
Right now i'm doing some experiments with telegram, and it looks like maximum video size is 639px. Even 640px gives an error, but up to 639 everything works fine. So for now i can say that requirements for sending video note are:
.mp4
, although others might also work.I'll edit this comment as i'll get some more information
Steps to reproduce
Expected behavior
Rounded Video
Actual behavior
Square Video with black thumb
Environment data
NuGet Package Version: Telegram.Bot.Core.13.2.0
Where is my mistake? and how I should change my codes to send rounded videos? Is there any problem in the library that I used (Telegram.Bot.Core.13.2.0) about sending video note messages?