English
Open in Telegram

Thread async def get_video_file_id(

8 messages · –
N
async def get_video_file_id( update: Update, ) -> None: message = update.effective_message video = message.video await message.reply_video( video=video.file_id, caption=message.caption, caption_entities=message.caption_entities, ) See the problem is i think in telegram api or not? See when i send a vidoe with custom thumbnail on it i wish bot will also send me the same vidoe but when the bot send me the video the custom thumbnail which was attached with the video, is removed, any way to get that custom thumbnail here also?
    1. N
      This is not tg bot api ?so how i will do with official tg bot api to send a video which has already a thumbnail without reprocessing this?
        1. N
          NO like differne big videos which has a custom thumbnail and so on right? that has somee custom thumbnail, when i share this video a any user they see the custom thumbnail, now i will want i will send this vidoe to a bot bot reply back the same video to the user so i found sometime bott send the video with thumbnail when video is large in gb, when video in 10 mb i found bot send back the video without the thumbnail to bot even i use the reply_vidoe(video.file_id...)
          1. А
            check if message.video.cover is filled, if the app set your custom pic as a cover it's there, not in thumbnail. then reply_video(video=video.file_id, cover=video.cover[-1].file_id, ...), ptb 21.11+
  1. P
    No telegrams bot api just decides to generates its own thumbnails for small enough videos
>>>> telegram.Bot()>>> telegram.Bot()@pythontelegrambotgroup · group · Tech
9 911members57writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count