Skip to content

Commit 53ba411

Browse files
authored
Create main.py
1 parent de763fa commit 53ba411

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import multiprocessing
2+
3+
from _telethon import app as ttapp
4+
from _pyrogram import app as pgapp
5+
6+
def trun(tclient):
7+
tclient.run_until_disconnected()
8+
9+
def prun(pclient):
10+
pclient.run()
11+
12+
multiprocessing.Process(target=trun, args=(ttapp)).start()
13+
prun()

0 commit comments

Comments
 (0)