ubot/readme.md

14 lines
1.1 KiB
Markdown
Raw Normal View History

2021-03-14 19:03:51 +01:00
#### My personal userbot
2021-03-14 19:17:11 +01:00
This project contains the source code of my ([@ghnou](https://t.me/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.
2021-03-14 19:03:51 +01:00
In terms of functionality it will be not too dissimilar from Konata ([bot](https://t.me/konatasanbot), [source](https://git.ghnou.su/ghnou/konata)). Currently it is still a work in progress.
#### Credentials
Visit [my.telegram.org](https://my.telegram.org/apps) 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).
2021-03-14 19:03:51 +01:00
#### 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.