forked from 1Danish-00/CompressorQueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstuff.py
66 lines (55 loc) · 2.66 KB
/
stuff.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This file is part of the CompressorQueue distribution.
# Copyright (c) 2021 Danish_00
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# License can be found in <
# https://github.com/1Danish-00/CompressorQueue/blob/main/License> .
from .worker import *
async def up(event):
if not event.is_private:
return
stt = dt.now()
ed = dt.now()
v = ts(int((ed - uptime).seconds) * 1000)
ms = (ed - stt).microseconds / 1000
p = f"🌋Pɪɴɢ = {ms}ms"
await event.reply(v + "\n" + p)
async def start(event):
await event.reply(
f"Hi `{event.sender.first_name}`\nThis is A CompressorQueue Which Can Encode Videos.\nReduce Size of Videos With Negligible Quality Change\nU can Generate Samples/screenshots too.",
buttons=[
[Button.inline("HELP", data="ihelp")],
[
Button.url("SOURCE CODE", url="github.com/1Danish-00/"),
Button.url("DEVELOPER", url="t.me/danish_00"),
],
],
)
async def help(event):
await event.reply(
"**🐠 A Quality CompressorQueue**\n\n+This Bot Compress Videos With Negligible Quality Change.\n+Generate Sample Compressed Video\n+Easy to Use\n-Due to Quality Settings Bot Takes Time To Compress.\nSo Be patience Nd Send videos One By One After Completing.\nDont Spam Bot.\n\nJust Forward Video To Get Options"
)
async def ihelp(event):
await event.edit(
"**🐠 A Quality CompressorQueue**\n\n+This Bot Compress Videos With Negligible Quality Change.\n+Generate Sample Compressed Video\n+Screenshots Too\n+Easy to Use\n-Due to Quality Settings Bot Takes Time To Compress.\nSo Be patience Nd Send videos One By One After Completing.\nDont Spam Bot.\n\nJust Forward Video To Get Options",
buttons=[Button.inline("BACK", data="beck")],
)
async def beck(event):
await event.edit(
f"Hi `{event.sender.first_name}`\nThis is A CompressorQueue Which Can Encode Videos.\nReduce Size of Videos With Negligible Quality Change\nU can Generate Samples/screenshots too.",
buttons=[
[Button.inline("HELP", data="ihelp")],
[
Button.url("SOURCE CODE", url="github.com/1Danish-00/"),
Button.url("DEVELOPER", url="t.me/danish_00"),
],
],
)