A multiclient bot that leverages the pyrogram's smart plugins system.
pip install pyrocatto[speedups]
pip install pyrocatto
after setting up sessions and writing the configuration
python -m pyrocatto --session-dir <session_dir> --config <config_file>
python -m pyrocatto --session-dir <session_dir> --config <config_file> --debug
python -m pyrocatto_sg create-user-session --session-dir <session_dir>
python -m pyrocatto_sg create-bot-session --session-dir <session_dir>
user: &user
plugins:
root: 'plugins.user_plugins'
include: Null
exclude: Null
addons:
wheel_userids:
- 1698923450
sessions: # name: {options}
cattobot: {<<: *user}
#custom: &custom
<<: *default # This line ensures non recursive inheritance from default client set
plugins:
root:
- 'plugins.extra_plugins'
include:
- 'extra_plugin'
exclude:
- 'unwanted'
addons:
wheel_userids:
- 12312421
- 25235423
- 21424111
- ...
sessions:
something: {<<: *custom}
extra_plugins: &extra_plugins
root: 'extra_plugins'
sessions:
something: {<<: *default, *extra_plugins}
anotherthing: {<<: *default, plugins: {root: 'extra_plugins'}}