|
2 | 2 |
|
3 | 3 | This folder contains example scripts to show you how **Pyrogram** looks like. |
4 | 4 |
|
5 | | -Every script is working right away (provided you correctly set up your credentials), meaning |
6 | | -you can simply copy-paste and run. The only things you have to change are session names and target chats. |
| 5 | +Every script is working right away (provided you correctly set up your credentials), meaning you can simply copy-paste |
| 6 | +and run. The only things you have to change are session names and target chats. |
7 | 7 |
|
8 | 8 | All the examples listed in this directory are licensed under the terms of the [CC0 1.0 Universal](LICENSE) license and |
9 | 9 | can be freely used as basic building blocks for your own applications without worrying about copyrights. |
10 | 10 |
|
11 | 11 | Example | Description |
12 | 12 | ---: | :--- |
13 | | -[**hello_world**](hello_world.py) | Demonstration of basic API usages |
14 | | -[**echo_bot**](echo_bot.py) | Echo bot that replies to every private text message |
15 | | -[**welcome_bot**](welcome_bot.py) | The Welcome Bot source code in [@PyrogramChat](https://t.me/pyrogramchat) |
16 | | -[**get_history**](get_history.py) | How to retrieve the full message history of a chat |
17 | | -[**get_chat_members**](get_chat_members.py) | How to get the first 10.000 members of a supergroup/channel |
18 | | -[**get_chat_members2**](get_chat_members2.py) | Improved version to get more than 10.000 members |
19 | | -[**query_inline_bots**](query_inline_bots.py) | How to query an inline bot and send a result to a chat |
20 | | -[**send_bot_keyboards**](send_bot_keyboards.py) | How to send normal and inline keyboards using regular bots |
21 | | -[**callback_query_handler**](callback_query_handler.py) | How to handle queries coming from inline button presses |
22 | | -[**raw_update_handler**](raw_update_handler.py) | How to handle raw updates (old, should be avoided) |
| 13 | +[**hello**](hello.py) | Demonstration of basic API usage |
| 14 | +[**echo**](echo.py) | Reply to every private text message |
| 15 | +[**welcome**](welcome.py) | The Welcome Bot in [@PyrogramChat](https://t.me/pyrogramchat) |
| 16 | +[**history**](history.py) | Get the full message history of a chat |
| 17 | +[**chat_members**](chat_members.py) | Get all the members of a chat |
| 18 | +[**dialogs**](dialogs.py) | Get all of your dialog chats |
| 19 | +[**inline_bots**](inline_bots.py) | Query an inline bot and send a result to a chat |
| 20 | +[**keyboards**](keyboards.py) | Send normal and inline keyboards using regular bots |
| 21 | +[**callback_queries**](callback_queries.py) | Handle queries coming from inline button presses |
| 22 | +[**raw_updates**](raw_updates.py) | Handle raw updates (old, should be avoided) |
0 commit comments