A Command Line Interface for Telegram BotFather written in Python3.6.
- python3 setup.py install
- This utility uses TgIntegration (and thus Pyrogram). Create a file
.botfather
in your home directory with the following contents:
[pyrogram]
api_id=...
api_hash=...
Replace the ellipses (...
) with appropriate values as described in Telegram API Keys.
$ botfather --help
Usage: botfather [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
deletebot
newbot
revoke
setabouttext
setcommands
setdescription
setname
switch
token
Using $ botfather switch
, you can make use of multiple Telegram sessions, so that you can spread your bots across multiple accounts and circumvent the 20 bots per account limit. These sessions will be stored in a ~/.botfather-sessions
directory.