mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-09-20 06:55:55 +08:00
add group usage
This commit is contained in:
parent
a783709355
commit
269dc201fd
2
ytdl.py
2
ytdl.py
|
@ -133,7 +133,7 @@ async def send_welcome(event):
|
|||
@bot.on(events.NewMessage(incoming=True))
|
||||
async def echo_all(event):
|
||||
chat_id = event.message.chat_id
|
||||
url = event.message.text
|
||||
url = re.sub(r'/ytdl\s*', '', event.message.text)
|
||||
logging.info("start %s", url)
|
||||
if not re.findall(r"^https?://", url.lower()):
|
||||
await event.reply("I think you should send me a link. Don't you agree with me?")
|
||||
|
|
Loading…
Reference in a new issue