I am getting messages from a telegram channel via messages.getHistory. The result is messages.channelMessages which contains a list(Vector) of message. Each message can have a messageMedia attached to it which mainly are messageMediaDocument. The document also has a unique document id that is referring to a file such as a video or audio. I am wondering if there is any way to get the file id or file URL of that document on the telegram server. If that is not possible, how can I access that document (which can be video, audio and etc.) somehow?
Get file_id or file_url of a channel message of telegram API?
224 Views Asked by Soheil At
1
There are 1 best solutions below
Related Questions in TELEGRAM
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Python. problem with Telegram bot [library telebot)
- Java, Telegram Bot runtime problems
- Download files (spec. images) with telegram bot (python-telegram-bot)
- Deploying telegram bot
- When I try to call the Telegram.WebApp.initDataUnsafe method in inline mode, the Telegram web app API returns an empty object - python & tg webapp
- Resetting pending updates
- Pyrogram: telegram API returns 400: INPUT_FILTER_INVALID after search_messages() request
- Telegram Bot "START" Button issue on history clean up on iOS devices
- How to safely transfer data from Telegram Mini App to Django+pyTelegramBotAPI without closing the app
- FloodWaitError with Telethon module
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- Проверка сообщений Telegram Bot
- Python : Using a MTProto Proxy For a Telegram Bot
- how to edit a message by id using telegraf.js
Related Questions in TELEGRAM-API
- Telegram Logout Active Session : Account_GetAuthorizations return 0 hash for active session
- How to create an inline keyboard with multiple rows in telegrambot using sgcWebSockets api telegram?
- Telethon functions send_request_code and sign_in are not sent
- how to use InlineQueryResultsButton with express js
- Send Reaction to message return Error ANONYMOUS Error
- how to show media in pictureBox?
- How to send sticker using inline call of a Telegram bot? (InlineQuery, AnswerInlineQuery)
- I'm making a telegram bot using webhook and spring boot, but the project is not going to work
- Telegram Channel Boost information in Telegrsm API
- .NET WTelegramClient in-memory data store for Saved session
- FILE_REFERENCE_EXPIRED at upload.getFile with inputPhotoFileLocation using mtproto/core
- I can't send requests to the Telegram API
- Decryption of incoming web push messages in .NET
- Detect when someone adds you to a contact in telegram
- Register & read Telegram "Web push" notifications
Related Questions in MTPROTO
- Python : Using a MTProto Proxy For a Telegram Bot
- How to transform html/markdown input to text+entities for sending in telegram api with nodejs?
- Telegram bot or API (messages.getHistory) get all chats messages history
- telegram mtproto/core how to comment on a post in the channel
- FILE_REFERENCE_EXPIRED at upload.getFile with inputPhotoFileLocation using mtproto/core
- mtproto node.js sdk error reading of undefined resolve
- It is possible to use telegram API get a message group chat without using bot?
- Telegram API returns 0 length chats array
- Different behavior Telegram API for different telegram accounts
- Telegram how to get Photo Message URL Link (without bot & with @mtproto/core)
- Wtlegramclient how to call a user
- Get file_id or file_url of a channel message of telegram API?
- How to fix Pyrogram client creation error in DearPyGui app?
- Node.js Ignore fetching replies in a telegram channel
- What is access_hash in telegram API?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
when get channel messages you can retrive file info that can
request TL upload.GetFile and receive file bytes
you can check this documention for nodejs
another way is check telegram web z version that how download bytes from file server