mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 09:05:13 +00:00
.. | ||
callback_query_handler.py | ||
echo_bot.py | ||
get_history.py | ||
get_participants2.py | ||
get_participants.py | ||
hello_world.py | ||
query_inline_bots.py | ||
raw_update_handler.py | ||
README.md | ||
send_bot_keyboards.py | ||
welcome_bot.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.
Example | Description |
---|---|
hello_world | Demonstration of basic API usages |
echo_bot | Echo bot that replies to every private text message |
welcome_bot | The Welcome Bot source code in @PyrogramChat |
get_history | How to retrieve the full message history of a chat |
get_participants | How to get the first 10.000 members of a supergroup/channel |
get_participants2 | Improved version to get more than 10.000 users |
query_inline_bots | How to query an inline bot and send a result to a chat |
send_bot_keyboards | How to send normal and inline keyboards using regular bots |
callback_query_handler | How to handle queries coming from inline button presses |
raw_update_handler | How to handle raw updates (old, should be avoided) |