-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c17106
commit 0c69100
Showing
3 changed files
with
33 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
QUEUE = {} | ||
|
||
GROUP_CALLS = {} | ||
active = [] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from kreacher import call_py, kreacher | ||
from telethon import events | ||
|
||
|
||
@kreacher.on(events.callbackquery.CallbackQuery(data="cls")) | ||
async def _(event): | ||
await event.delete() | ||
|
||
|
||
@kreacher.on(events.callbackquery.CallbackQuery(data="pause_callback")) | ||
async def _(event): | ||
await call_py.set_pause(True) | ||
|
||
|
||
@kreacher.on(events.callbackquery.CallbackQuery(data="resume_callback")) | ||
async def _(event): | ||
await call_py.set_pause(False) | ||
|
||
|
||
@kreacher.on(events.callbackquery.CallbackQuery(data="end_callback")) | ||
async def _(event): | ||
await call_py.stop_media() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters