Howto sent a video as video rounded (Videonote) #812
tilibougnia
started this conversation in
General
Replies: 1 comment 1 reply
-
|
@tilibougnia you should re-format video to exactly 512x512, use ffmpeg or some other tool |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried this :
`let media = await new Api.InputMediaUploadedDocument({
file: await client.uploadFile({
file: new CustomFile(
"video.mp4",
statSync("./video.mp4").size,
"./video.mp4"
),
workers: 1,
}),
attributes: [new Api.DocumentAttributeVideo({
duration: 11.0,
h: 3,
w: 3,
roundMessage: true,
supportsStreaming: true,
})],
mimeType: 'video/mp4',
//ttlSeconds: 5,
})
const resultsent = await client.invoke(
new Api.messages.SendMedia({
peer: "me",
media: await media,
message: "ss",
randomId: BigInt("-4156887774564"),
noforwards: true,
//scheduleDate: 43,
//sendAs: "username",
})
`
But the video has always send as a gif and not a video, and moreover is not rounded...
Can you help me ?
Beta Was this translation helpful? Give feedback.
All reactions