mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
.. | ||
callback_queries.py | ||
chat_members.py | ||
dialogs.py | ||
echo.py | ||
hello.py | ||
history.py | ||
inline_bots.py | ||
keyboards.py | ||
LICENSE | ||
raw_updates.py | ||
README.md | ||
welcome.py |
Examples
This folder contains example scripts to show you how Pyrogram looks like.
Every script is working right away (provided you correctly set up your credentials), meaning you can simply copy-paste and run. The only things you have to change are session names and target chats.
All the examples listed in this directory are licensed under the terms of the CC0 1.0 Universal license and can be freely used as basic building blocks for your own applications without worrying about copyrights.
Example | Description |
---|---|
hello | Demonstration of basic API usage |
echo | Reply to every private text message |
welcome | The Welcome Bot in @PyrogramChat |
history | Get the full message history of a chat |
chat_members | Get all the members of a chat |
dialogs | Get all of your dialog chats |
inline_bots | Query an inline bot and send a result to a chat |
keyboards | Send normal and inline keyboards using regular bots |
callback_queries | Handle queries coming from inline button presses |
raw_updates | Handle raw updates (old, should be avoided) |