A plugin based, silly qbot for Telegram, somewhat inspired by otouto, and uniborg.
All references to Hitler are jokes between some friends and I. Not to be taken seriously as we have no relation, or involvement in any fascist, racist, homophobic or trans-phobic, or nazi activity, and are strongly against it. Any jokes used in this bot that you might find offensive are not intended as such.
- Telethon 1.3
- >= Python 3.5 (Tested on 3.6.6 and 3.7.0)
- Other requirements
- A brain probably
pip install -r requirements.txt
cp example_config.ini config.ini
- Follow this link and login with your phone number
- A "Create New Application" window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
- Click on Create application at the end.
- Add your api id, api hash, and other information to
config.ini
- To get the
token
, you must create a bot with botfather
- To get the
start.sh
creates a screen
session called tanyabot
. Check the logs by doing screen -r tanyabot
. Detach from the session with ctrl a, d. Stop the bot with ctrl c.
Create a new plugin file using the template {name}plugin.py
. For example my_plugin.py
.
from telethon import events, sync
and from .global_functions import probability
(optional) should be at the top. Then just add whatever you want. See this plugin as an example/template. (And please don't be offended)