add group usage

This commit is contained in:
Tom Yang 2021-05-04 20:32:43 -04:00
parent a783709355
commit 269dc201fd
No known key found for this signature in database
GPG key ID: A220418830F62855

View file

@ -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?")