pyrogram/examples
2020-02-01 14:04:33 +01:00
..
bot_keyboards.py Update copyright notice 2020-02-01 14:04:33 +01:00
callback_queries.py Update copyright notice 2020-02-01 14:04:33 +01:00
echobot.py Update copyright notice 2020-02-01 14:04:33 +01:00
get_chat_members.py Update copyright notice 2020-02-01 14:04:33 +01:00
get_dialogs.py Update copyright notice 2020-02-01 14:04:33 +01:00
get_history.py Update copyright notice 2020-02-01 14:04:33 +01:00
hello_world.py Update copyright notice 2020-02-01 14:04:33 +01:00
inline_queries.py Update copyright notice 2020-02-01 14:04:33 +01:00
LICENSE Add CC0 1.0 Universal License 2018-10-09 15:07:12 +02:00
raw_updates.py Update copyright notice 2020-02-01 14:04:33 +01:00
README.md Update examples 2019-05-10 17:17:39 +02:00
use_inline_bots.py Update copyright notice 2020-02-01 14:04:33 +01:00
welcomebot.py Update copyright notice 2020-02-01 14:04:33 +01: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.

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_world Demonstration of basic API usage
echobot Echo every private text message
welcomebot The Welcome Bot in @PyrogramChat
get_history Get the full message history of a chat
get_chat_members Get all the members of a chat
get_dialogs Get all of your dialog chats
callback_queries Handle callback queries (as bot) coming from inline button presses
inline_queries Handle inline queries (as bot) and answer with results
use_inline_bots Query an inline bot (as user) and send a result to a chat
bot_keyboards Send normal and inline keyboards using regular bots
raw_updates Handle raw updates (old, should be avoided)