forked from patrickloeber/python-github-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
39 lines (24 loc) · 895 Bytes
/
main.py
File metadata and controls
39 lines (24 loc) · 895 Bytes
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
from pyrogram import Client, filters
from pyrogram import enums
api_id = 23136380
api_hash = "6ae6541159e229499615953de667675c"
#---------config--------------#
tagchaneel = "-1002008420751"
idchannel = "-1002008420751"
channel = [-1002008420751]
#-----------------------------#
app = Client("copy" , api_id , api_hash)
@app.on_message(filters.text & filters.me)
async def mes_handler(client, message):
chatid = message.chat.id
text = message.text
if text == "help":
await message.reply_text('`انلاینم!🦦`')
@app.on_message(filters.text & filters.chat(channel))
async def mes_handler(client, message):
chatid = message.chat.id
text = message.text
if 'vlass://' in text or 'vmess://' in text or 'ss://' in text or 'trojan://' in text:
text1 = '`{text}`' + '\n' + tagchaneel
await app.send_message(idchannel, text)
app.run()