Skip to content

Instantly share code, notes, and snippets.

View vikramisdev's full-sized avatar
💠
#stand-alone

Vikram Vishwakarma vikramisdev

💠
#stand-alone
View GitHub Profile
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.")