Socket
Socket
Sign inDemoInstall

bottem

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bottem

A Python and Telegram utility package


Maintainers
1

Readme

Telegram bot just by calling one function.

Description:

If you have some functions and you want to bot them use bottem :wink:

Actually, it is just a wrapper for pyrogram and adds a command handler for all of your module functions.


Requirements

  • Python3+
  • Pyrogram

Usage:

cp config.init.example config.init
vi config.init
from . import my_module
from bottem import Bottem

Bottem(my_module)

my_module.py:

def hello(*args):
    return "Hello World!"

def echo(*words):
    return " ".join(words)

Then you just need to send commadn to your bot:

  • /echo This text is echoed. to receive This text is echoed. reply
  • /hello to receive Hello World! reply.

Config file

  • api_id from telegram
  • api_hash
  • bot_token from botfather

Read pyrogram for more config info.


PS:
BTW I've stolen this README.md from this repo

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc