Skip to content

Commit

Permalink
add duration to telegram response
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed May 7, 2024
1 parent eff03ec commit 48d4204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ bot.on("message:text").on("::url", async (ctx, next) => {
await ctx.replyWithVideo(video, {
caption: title,
supports_streaming: true,
duration: info.duration,
reply_parameters: {
message_id: ctx.message?.message_id,
allow_sending_without_reply: true,
Expand All @@ -97,6 +98,7 @@ bot.on("message:text").on("::url", async (ctx, next) => {
performer: info.uploader,
title: info.title,
thumbnail: getThumbnail(info.thumbnails),
duration: info.duration,
reply_parameters: {
message_id: ctx.message?.message_id,
allow_sending_without_reply: true,
Expand Down

0 comments on commit 48d4204

Please sign in to comment.