New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bottem

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bottem

A Python and Telegram utility package

  • 1
  • Source
  • PyPI
  • Socket score

Maintainers
1

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc