Skip to content

Commit

Permalink
Create leave.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 4, 2023
1 parent 834fab8 commit 2aad693
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tlg_bot/kreacher/plugins/leave.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from kreacher import call_py, kreacher
from telethon import events


@kreacher.on(events.NewMessage(pattern="[!?/]leave"))
async def leave_handler(event):
await call_py.leave_current_group_call()

0 comments on commit 2aad693

Please sign in to comment.