wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
990 stars 163 forks source link

fetching big files sent to bot & download them #259

Closed kingk110 closed 4 months ago

kingk110 commented 5 months ago

I am trying to use the example in the link https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_DownloadSavedMedia.cs

I want to send message to my bot and fetch it and download media containing in it. I made a project using Telegram.Bot package and was able to do that but the problem that bot api prevent downloading files larger than 20 MB.

now this package is hard for me to understand I spend lot of hours trying to get the messages sent to the bot but with no results. If I use the Messages_GetAllChats it returns chats from channels only not from users. I want a user to send me a video and the program must download it.

wiz0u commented 4 months ago

As discussed in group, if you want to build a bot that can upload or download big files, it is recommended you use library WTelegramBot instead which was designed exactly for that purpose, while still presenting the Bot API methods which are more simple than the Client API.