Qwerty-Space / tanyabot

Silly Telegram bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tanyabot

A plugin based, silly qbot for Telegram, somewhat inspired by otouto, and uniborg.

Disclaimer

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.

Requirements


Installation and Setup

  1. pip install -r requirements.txt
  2. cp example_config.ini config.ini
  3. Follow this link and login with your phone number
  4. 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.
  5. Click on Create application at the end.
  6. Add your api id, api hash, and other information to config.ini
    • To get the token, you must create a bot with botfather

Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!

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.

Adding Custom Plugins

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)

About

Silly Telegram bot


Languages

Language:Python 99.7%Language:Shell 0.3%