tonym128 / shhh-bot

A Telegram Bot to convert speech to text from small videos and audio files.
MIT License
24 stars 1 forks source link

Use Telegram App API for downloading large attachments #18

Open kpmy opened 2 months ago

kpmy commented 2 months ago

There is a way to download larger attachements with api_hash api_id given from https://my.telegram.org/auth?to=apps

Can you implement this?

tonym128 commented 2 months ago

I think that is only for applications. Unfortunately shhh-bot is a bot and will only be able to use bot api's.

According to the bot api docs : I can only download attachments using https://core.telegram.org/bots/api#getfile Which it says is limited to 20mb.

Changing to an application would need a large rework of the code base.

An alternative may include creating a website you could just upload directly to shhh-bot instead of going through Telegram. A project like this might be more appropriate - https://github.com/innovatorved/whisper.api or creating a something based on the whisper cpp project - https://github.com/ggerganov/whisper.cpp

kpmy commented 2 months ago

I see. I need specific tg bots for a specific purposes.

also, looks like this project have made their own way to download and upload more than limited size. nonoo/yt-dlp-telegram-bot

but it is created with golang, not with python.

tonym128 commented 2 months ago

It seems like they have setup a complete application from their docs. I'm not sure when I'll have time, but if I do work on the project in the future I'll definitely look to add it.