mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Update hello_world.py
This commit is contained in:
parent
2e60457295
commit
849b42b444
@ -1,16 +1,16 @@
|
|||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
# Create a new Client
|
# Create a new Client
|
||||||
client = Client("example")
|
app = Client("my_account")
|
||||||
|
|
||||||
# Start the Client
|
# Start the Client
|
||||||
client.start()
|
app.start()
|
||||||
|
|
||||||
# Send a message to yourself, Markdown is enabled by default
|
# Send a message to yourself, Markdown is enabled by default
|
||||||
client.send_message("me", "Hi there! I'm using **Pyrogram**")
|
app.send_message("me", "Hi there! I'm using **Pyrogram**")
|
||||||
|
|
||||||
# Send a location to yourself
|
# Send a location to yourself
|
||||||
client.send_location("me", 51.500729, -0.124583)
|
app.send_location("me", 51.500729, -0.124583)
|
||||||
|
|
||||||
# Stop the client
|
# Stop the client
|
||||||
client.stop()
|
app.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user