From a8582c60e3bed5b93c989e2963d40130771cf11d Mon Sep 17 00:00:00 2001 From: Igor <50257429+igorechek06@users.noreply.github.com> Date: Sat, 28 Aug 2021 21:10:16 +0900 Subject: 0.0.1 --- handlers/ananas_only.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 handlers/ananas_only.py (limited to 'handlers/ananas_only.py') diff --git a/handlers/ananas_only.py b/handlers/ananas_only.py new file mode 100644 index 0000000..7426593 --- /dev/null +++ b/handlers/ananas_only.py @@ -0,0 +1,10 @@ +from shared.instances import dp +from aiogram import types as t +from utils import filters as f + + +@dp.my_chat_member_handler(f.user.add_member) +async def pososi(upd: t.ChatMemberUpdated): + if upd.chat.id not in (-1001444484622, -1001197098429): + await upd.bot.send_message(upd.chat.id, 'https://www.youtube.com/watch?v=xdDhmagsXrc') + await upd.chat.leave() -- cgit v1.2.3