Created
February 26, 2022 10:03
-
-
Save vikramisdev/f556fbc6c2f10b0526ed56934e7b1548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyrogram import Client, idle | |
API_ID = input("Enter api_id: ") | |
API_HASH = input("Enter api_hash: ") | |
STRING_SESSION = input("Enter pyrogram string session: ") | |
app = Client(STRING_SESSION, api_id=API_ID, api_hash=API_HASH) | |
with app: | |
app.send_message("me", "I am a pyrogram client, sending this message to you.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment