I used python-telegram-bot to get download url from the posts sent to my implemented bot. The problem was the file size limitation (max upload size: 50 MB, max download size: 20 MB).
So I changed my python library to telethon to use mtproto. It doesn’t have the file size limitation, but, I can’t find the method to get the download URL! It has a method called ‘download_media’ and it downloads the media!
@client.on(events.NewMessage)
async def download_media(event, **kwargs):
message = event.message
file = await message.download_media()
Is there any way to get just the download URL without downloading the file?