diff options
Diffstat (limited to 'handlers/ananas_only.py')
| -rw-r--r-- | handlers/ananas_only.py | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
| 1 | from shared.instances import dp | ||
| 2 | from aiogram import types as t | ||
| 3 | from utils import filters as f | ||
| 4 | |||
| 5 | |||
| 6 | @dp.my_chat_member_handler(f.user.add_member) | ||
| 7 | async def pososi(upd: t.ChatMemberUpdated): | ||
| 8 | if upd.chat.id not in (-1001444484622, -1001197098429): | ||
| 9 | await upd.bot.send_message(upd.chat.id, 'https://www.youtube.com/watch?v=xdDhmagsXrc') | ||
| 10 | await upd.chat.leave() | ||
