diff --git a/examples/hello_world.py b/examples/hello_world.py new file mode 100644 index 00000000..96934f32 --- /dev/null +++ b/examples/hello_world.py @@ -0,0 +1,19 @@ +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 photo with a formatted caption to yourself +client.send_photo("me", "pyrogram.png", "__This is a formatted__ **caption**") + +# Send a location to yourself +client.send_location("me", 51.500729, -0.124583) + +# Stop the client +client.stop() diff --git a/examples/pyrogram.png b/examples/pyrogram.png new file mode 100644 index 00000000..57bfefe8 Binary files /dev/null and b/examples/pyrogram.png differ