MTPyroger/examples/README.md

20 lines
1.3 KiB
Markdown
Raw Normal View History

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
Every script is working right away (provided you correctly set up your credentials), meaning
2018-05-06 11:20:29 +00:00
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-05-06 11:20:29 +00:00
Example | Description
---: | :---
[**hello_world**](hello_world.py) | Demonstration of basic API usages
[**echo_bot**](echo_bot.py) | Echo bot that replies to every private text message
[**welcome_bot**](welcome_bot.py) | The Welcome Bot source code in [@PyrogramChat](https://t.me/pyrogramchat)
[**get_history**](get_history.py) | How to retrieve the full message history of a chat
2018-10-09 12:49:42 +00:00
[**get_chat_members**](get_chat_members.py) | How to get the first 10.000 members of a supergroup/channel
[**get_chat_members2**](get_chat_members2.py) | Improved version to get more than 10.000 members
2018-05-06 11:20:29 +00:00
[**query_inline_bots**](query_inline_bots.py) | How to query an inline bot and send a result to a chat
[**send_bot_keyboards**](send_bot_keyboards.py) | How to send normal and inline keyboards using regular bots
[**callback_query_handler**](callback_query_handler.py) | How to handle queries coming from inline button presses
[**raw_update_handler**](raw_update_handler.py) | How to handle raw updates (old, should be avoided)