-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathstr.py
More file actions
26 lines (18 loc) · 691 Bytes
/
str.py
File metadata and controls
26 lines (18 loc) · 691 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
import asyncio
from pyrogram import Client
TG = """
A bot that can play music on telegram group's voice chat.
This file is part of < https://github.coM/QueenArzoo/VCPvtBot > project,
and is released under the "Apache 2.0".
Please see < https://github.COM/QueenArzoo/VCPvtBotblob/master/LICENSE >
All rights reserved.
"""
print(TG)
api_id = input("Enter Your API ID: \n")
api_hash = input("Enter Your API HASH : \n")
async def main():
async with Client(":memory:", api_id=int(input("API ID:")), api_hash=input("API HASH:")) as app:
print(await app.export_session_string())
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())