2018-02-26 16:10:58 +00:00
|
|
|
# Examples
|
|
|
|
|
|
|
|
This folder contains example scripts to show you how **Pyrogram** looks like.
|
2018-03-22 15:22:20 +00:00
|
|
|
|
2019-01-07 09:33:09 +00:00
|
|
|
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.
|
2018-02-26 16:10:58 +00:00
|
|
|
|
2018-10-09 13:17:15 +00:00
|
|
|
All the examples listed in this directory are licensed under the terms of the [CC0 1.0 Universal](LICENSE) license and
|
|
|
|
can be freely used as basic building blocks for your own applications without worrying about copyrights.
|
|
|
|
|
2018-05-06 11:20:29 +00:00
|
|
|
Example | Description
|
|
|
|
---: | :---
|
2019-04-13 14:02:31 +00:00
|
|
|
[**hello_world**](hello_world.py) | Demonstration of basic API usage
|
|
|
|
[**echobot**](echobot.py) | Echo every private text message
|
2019-05-10 15:15:46 +00:00
|
|
|
[**welcomebot**](welcomebot.py) | The Welcome Bot in [@PyrogramChat](https://t.me/pyrogramchat)
|
|
|
|
[**get_history**](get_history.py) | Get the full message history of a chat
|
|
|
|
[**get_chat_members**](get_chat_members.py) | Get all the members of a chat
|
|
|
|
[**get_dialogs**](get_dialogs.py) | Get all of your dialog chats
|
|
|
|
[**callback_queries**](callback_queries.py) | Handle callback queries (as bot) coming from inline button presses
|
|
|
|
[**inline_queries**](inline_queries.py) | Handle inline queries (as bot) and answer with results
|
|
|
|
[**use_inline_bots**](use_inline_bots.py) | Query an inline bot (as user) and send a result to a chat
|
|
|
|
[**bot_keyboards**](bot_keyboards.py) | Send normal and inline keyboards using regular bots
|
2019-01-07 09:33:09 +00:00
|
|
|
[**raw_updates**](raw_updates.py) | Handle raw updates (old, should be avoided)
|