watzon / kantek

Pluggable Telegram userbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kantek

kantek is a userbot written in Python using Telethon.

Requirements

Python 3.6+ is required to run the bot.

Setup

  • Copy the example config file to config.py
  • Put the Authentication data into the config file.
  • Run bot.py

Plugin Example

from telethon import events
from telethon.events import NewMessage

from config import cmd_prefix
from utils.pluginmgr import KantekPlugin


class Ping(KantekPlugin):
    """A short help message for the entire plugin"""
    name = 'Ping'

    @events.register(NewMessage(outgoing=True, pattern=f'{cmd_prefix}ping'))
    async def ping(event):
        """A long message about the command"""
        await event.reply('Pong 🏓')

About

Pluggable Telegram userbot

License:GNU Affero General Public License v3.0


Languages

Language:Python 99.4%Language:Shell 0.6%