Skip to content

Instantly share code, notes, and snippets.

@vikramisdev
Created February 26, 2022 10:03
Show Gist options
  • Save vikramisdev/f556fbc6c2f10b0526ed56934e7b1548 to your computer and use it in GitHub Desktop.
Save vikramisdev/f556fbc6c2f10b0526ed56934e7b1548 to your computer and use it in GitHub Desktop.
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