FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DevelopersUserbot/_pyrogram/modules/help.py at master · TheCodents/DevelopersUserbot · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TheCodents
/
DevelopersUserbot
Public
Notifications
You must be signed in to change notification settings
Fork
36
Star
25
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DevelopersUserbot
/
_pyrogram
/
modules
/
help.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (32 loc) · 1.12 KB
Breadcrumbs
DevelopersUserbot
/
_pyrogram
/
modules
/
help.py
Copy path
File metadata and controls
36 lines (32 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# This file is Originally Written By @okay-retard on GitHub
# The Author (Jayant Kageri) just Ported this for Devloper Userbot
# (C) 2021 Jayant Kageri
from
pyrogram
import
filters
from
_pyrogram
import
app
,
HELP
,
CMD_HELP
from
config
import
PREFIX
from
_pyrogram
.
helpers
.
pyrohelper
import
get_arg
HELP
.
update
(
{
"**Admin Tools**"
:
"ban, unban, promote, demote, kick, mute, unmute, pin, purge, del, invite"
,
"**Alive**"
:
"alive, ping"
,
"**Developer**"
:
"peval, teval, sh"
,
"**Misc**"
:
"paste, tr, info, id"
,
"**Heroku**"
:
"update, restart, logs"
,
}
)
@
app
.
on_message
(
filters
.
command
(
"help"
,
PREFIX
)
&
filters
.
me
)
async
def
help
(
client
,
message
):
args
=
get_arg
(
message
)
if
not
args
:
text
=
"**Available Commands**
\n
\n
"
for
key
,
value
in
HELP
.
items
():
text
+=
f"
{
key
}
:
{
value
}
\n
\n
"
await
message
.
edit
(
text
)
return
else
:
module_help
=
CMD_HELP
.
get
(
args
,
False
)
if
not
module_help
:
await
message
.
edit
(
"Invalid module name specified"
)
return
else
:
await
message
.
edit
(
module_help
)
Back
|
FazBrowse Home
|
New Git URL