Skip to main content

A module for create python-telegram-bot with easy and fast

Project description

Introduction

We’ve built the bot framework you’ve been waiting for!

Unlock seamless Telegram bot development with our intuitive, powerful framework. Tap into our thriving community for support and inspiration

Installing

You can install or upgrade ptb-easy-bot via

$ pip install ptb-easy-bot --upgrade

To install a pre-release, use the --pre flag in addition.

Quick Start

from Easy_Bot import _powerup_bot_ , commnders
from telegram import Bot
import asyncio

TOKEN = ""
WEBHOOK_URL = ""
PORT = int(os.environ.get('PORT', '8443'))

async def main(WEBHOOK_URL,TOKEN):
    if WEBHOOK_URL:
        bot = Bot(TOKEN)
        await bot.set_webhook(WEBHOOK_URL + "/" + TOKEN)
    start_check_updates()

async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE):
    await update.message.reply_text("Hello..")

Handlers = {
    commnders :  {
        'start' : start_command,
    },

}
if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main(WEBHOOK_URL,TOKEN))
    _powerup_bot_(
        TOKEN=TOKEN,
        Handlers=Handlers,
        Webhook_url=WEBHOOK_URL,
        PORT=PORT
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptb-easy-bot-0.0.6.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

ptb_easy_bot-0.0.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ptb-easy-bot-0.0.6.tar.gz.

File metadata

  • Download URL: ptb-easy-bot-0.0.6.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for ptb-easy-bot-0.0.6.tar.gz
Algorithm Hash digest
SHA256 21fe4a997f729d69409b9a8796d409052036c582948163350c7c8031148edb03
MD5 f96167a44aed1f5721a4568fb6e65739
BLAKE2b-256 322d2f8d7d2ce2b622087c3798bbc7aab145718126440fdba91c35a672f166f3

See more details on using hashes here.

Provenance

File details

Details for the file ptb_easy_bot-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for ptb_easy_bot-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 35dbf96eb06d6a083c4b589b53582ab7896408b48e16f6df6c80eec70fec0cbd
MD5 54d560ee64ca7acbbea2248e51bc8a4d
BLAKE2b-256 1c34a3788d094984de0017d405cc37ce7656b115d97c82069ef374f2c1d57c44

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page