Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VJBots authored Jul 17, 2024
1 parent 6f99218 commit 0a7c253
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import core as helper
from utils import progress_bar
from vars import api_id, api_hash, bot_token
from vars import API_ID, API_HASH, BOT_TOKEN
from aiohttp import ClientSession
from pyromod import listen
from subprocess import getstatusoutput
Expand All @@ -24,13 +24,13 @@

bot = Client(
"bot",
api_id=api_id,
api_hash=api_hash,
bot_token=bot_token)
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN)


@bot.on_message(filters.command(["start"]))
async def account_login(bot: Client, m: Message):
async def start(bot: Client, m: Message):
editable = await m.reply_text("**ℍɪɪ** ┈━═My Freind═━┈😎\n\n I Am A Bot For Download Links From Your **.TXT** File And Then Upload That File Om Telegram So Basically If You Want To Use Me First Send Me /upload Command And Then Follow Few Steps..")


Expand All @@ -42,7 +42,7 @@ async def restart_handler(_, m):


@bot.on_message(filters.command(["upload"]))
async def account_login(bot: Client, m: Message):
async def upload(bot: Client, m: Message):
editable = await m.reply_text('𝕋𝕆 ᴅᴏᴡɴʟᴏᴀᴅ ᴀ ᴛxᴛ ғɪʟᴇ 𝕤ᴇɴᴅ ʜᴇʀᴇ ⚡️')
input: Message = await bot.listen(editable.chat.id)
x = await input.download()
Expand Down

0 comments on commit 0a7c253

Please sign in to comment.