ytdlbot
ytdlbot copied to clipboard
Support topics in telegram-chats
Problem
There are some telegram-chats with topics enabled. Topics is a convenient and popular way to have subchats in your chat. You still have one chatId, but multiple topic ids (1
, 2
, 3
and so on) in it. When no topic id specified, the message is being sent to the general one with id 1
(backward compatibility).
When I send request to ytdlbot in a different topic, it replies to the general topic. This is kind of a bug. Perhaps pyrogram or some other lib version should be updated. Or code should be changed to pay respect to topic ids.