nonoo / yt-dlp-telegram-bot

Downloads videos using yt-dlp and re-uploads them to Telegram, so they can be viewed with Telegram's built-in video player.
MIT License
28 stars 4 forks source link

Doesn't work in groups #11

Open KenHV opened 1 month ago

KenHV commented 1 month ago

It works perfectly fine in DMs but it doesn't respond to any messages in whitelisted groups. Nothing shows up in logs. I've tried updating all the dependencies but that doesn't work either.

nonoo commented 1 month ago

Enable groups in the BotFather settings for your bot. Also try enabling/disabling group privacy there.

On Mon, Jul 15, 2024, 09:49 KenHV @.***> wrote:

It works perfectly fine in DMs but it doesn't respond to any messages in whitelisted groups. Nothing shows up in logs. I've tried updating all the dependencies but that doesn't work either.

— Reply to this email directly, view it on GitHub https://github.com/nonoo/yt-dlp-telegram-bot/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADAIHLSSD4W7JKJSQ33CITZMN5JZAVCNFSM6AAAAABK4AETV6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDQMBYHE4TQNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

KenHV commented 1 month ago

Groups were already enabled. Tried turning off privacy mode, that didn't work either. I kicked the bot and re-added it (with admin rights) to be sure.

pmezhuev commented 3 weeks ago

@KenHV try using /dlp <url>

KenHV commented 3 weeks ago

@KenHV try using /dlp <url>

Hey, I just tried it with your patches and it still doesn't work for me. Tried updating dependencies as well.

KenHV commented 2 weeks ago

I added a debug statement at the top of handleMsg function, it seems the function isn't triggered at all in groups, no matter what the user and chat IDs are.

cc: @pmezhuev