pyrogram/examples
2018-10-09 14:47:47 +02:00
..
callback_query_handler.py Update callback_query_handler.py 2018-10-09 14:08:14 +02:00
echo_bot.py Update echo_bot.py 2018-10-09 13:50:34 +02:00
get_chat_members2.py Add get_chat_members2.py 2018-10-09 14:47:47 +02:00
get_chat_members.py Add short description 2018-10-09 14:45:51 +02:00
get_history.py Update get_history.py 2018-10-09 13:51:29 +02:00
get_participants2.py Use app.run() in the examples 2018-06-22 13:30:18 +02:00
get_participants.py Use app.run() in the examples 2018-06-22 13:30:18 +02:00
hello_world.py Refactor the project by using Mixin classes 2018-05-07 14:30:55 +02:00
query_inline_bots.py Refactor the project by using Mixin classes 2018-05-07 14:30:55 +02:00
raw_update_handler.py Use app.run() in the examples 2018-06-22 13:30:18 +02:00
README.md Update examples README.md 2018-05-06 13:20:29 +02:00
send_bot_keyboards.py Refactor the project by using Mixin classes 2018-05-07 14:30:55 +02:00
welcome_bot.py Use app.run() in the examples 2018-06-22 13:30:18 +02:00

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)