1.1 KiB
My personal userbot
This project contains the source code of my (@ghnou's) userbot. It is based on Telethon, which you can install with pip3 install -U telethon --user
as a regular user. It has no other dependencies.
In terms of functionality it will be not too dissimilar from Konata (bot, source). Currently it is still a work in progress.
Credentials
Visit my.telegram.org to get your API ID and API hash values. These should then be passed into the system as environment variables api_id
and api_hash
respectively. Provided that this bot runs in a container (such as LXC) as the only application in it, a good place to put these would be the system's /etc/environment
file. Otherwise put them somewhere more specific to the bot (~/.profile
for a dedicated bot user perhaps).
License
This project is released as "All rights reserved". You are allowed to study the code as inspiration to make your own userbot, but you are not allowed to copy it verbatim.