diff options
| author | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
|---|---|---|
| committer | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
| commit | a8582c60e3bed5b93c989e2963d40130771cf11d (patch) | |
| tree | 747f2cfe1a8a8f003cba81d92ebe3822b4adc419 /handlers/ananas_only.py | |
| parent | 2efa35c42be7ac554e3519b8673f7cad8c966e64 (diff) | |
| download | karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.tar.gz karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.zip | |
0.0.1
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() | ||
