This repository was archived by the owner on Dec 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- # : fire : Pyrogram Plugins
1
+ # Pyrogram Plugins
2
2
3
- <img align = " right " src =" https://emojipedia-us.s3.dualstack.us-west-1.amazonaws. com/thumbs/120/apple/155/jigsaw-puzzle-piece_1f9e9 .png " >
3
+ <img src =" https://i.imgur. com/JyxrStE .png " width = " 160 " align = " right " >
4
4
5
5
> A collection of Pyrogram plugins made by the community
6
6
10
10
11
11
- Create a new folder in your working directory (e.g.: * plugins* ).
12
12
- [ Download] ( https://github.com/pyrogram/plugins/archive/master.zip ) and copy the desired plugin(s) into your * plugins* folder.
13
- - Enable plugins in your Client by telling Pyrogram to search on your folder with ` plugins_dir= "plugins"` :
13
+ - Enable plugins in your Client by telling Pyrogram to search on your folder with ` plugins=dict(root= "plugins") ` :
14
14
``` python
15
15
from pyrogram import Client
16
16
17
- app = Client(" my_account" , plugins_dir = " plugins" )
17
+ app = Client(" my_account" , plugins = dict ( root = " plugins" ) )
18
18
```
19
19
- Done! Run your client with ` app.run() ` , the plugins will be automatically loaded.
20
20
21
- [ ** More details** ] ( https://docs.pyrogram.ml/resources/SmartPlugins #using-smart-plugins )
21
+ [ ** More details** ] ( https://docs.pyrogram.org/topics/smart-plugins #using-smart-plugins )
22
22
23
23
## Adding Plugins
24
24
25
- - Understand how [ Smart Plugins] ( //docs.pyrogram.ml/resources/SmartPlugins ) work.
25
+ - Understand how [ Smart Plugins] ( https: //docs.pyrogram.org/topics/smart-plugins ) work.
26
26
- Create an awesome plugin.
27
27
- Make a folder for your plugin and choose a meaningful name.
28
28
- Create a python file named the same inside your plugin folder.
You can’t perform that action at this time.
0 commit comments