Telegram_bot / app.py
Dooratre's picture
Update app.py
3514dce verified
raw
history blame contribute delete
656 Bytes
import os
from pyrogram import Client, filters
from pyrogram.types import Message
plugins = dict(root = "plugins")
API_ID = int(os.environ.get("API_ID", 28074643))
API_HASH = os.environ.get("API_HASH", "2f3d441733660d0e3a65717818c28ea5")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6990801595:AAE79xNVO1D_0SeWZlzYLE57Suwfp9GyKT8")
app = Client(name = "sb",
api_id = API_ID,
plugins = plugins,
api_hash = API_HASH,
bot_token = BOT_TOKEN)
@Client.on_message(filters.command("start"))
def send_message(client : Client, message : Message):
message.reply_text("Hellow")
app.run(host='0.0.0.0',port=7860)