2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-24 19:07:57 +00:00
pyrogram/examples/hello_world.py

17 lines
350 B
Python
Raw Normal View History

2018-02-26 15:09:24 +01:00
from pyrogram import Client
# Create a new Client
client = Client("example")
# Start the Client
client.start()
# Send a message to yourself, Markdown is enabled by default
client.send_message("me", "Hi there! I'm using **Pyrogram**")
# Send a location to yourself
client.send_location("me", 51.500729, -0.124583)
# Stop the client
client.stop()