Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import pyrogram, os, asyncio

try: app_id = int(os.environ.get("app_id", "20389440"))
try: app_id = int(os.environ.get("app_id", "24894984"))
except Exception as app_id: print(f"⚠️ App ID Invalid {app_id}")
try: api_hash = os.environ.get("api_hash", "a1a06a18eb9153e9dbd447cfd5da2457")
try: api_hash = os.environ.get("api_hash", "4956e23833905463efb588eb806f9804")
except Exception as api_id: print(f"⚠️ Api Hash Invalid {api_hash}")
try: bot_token = os.environ.get("bot_token", "6564513574:AAH3Y97iqQjSlV5vKKZdGDUohlhpA-LeSbw")
try: bot_token = os.environ.get("bot_token", "7328135476:AAEapfWhc4yo0jsQX_LD5cMByF3i4exUtQ0")
except Exception as bot_token: print(f"⚠️ Bot Token Invalid {bot_token}")
try: custom_caption = os.environ.get("custom_caption", "`{file_name}`")
try: custom_caption = os.environ.get("custom_caption", "`{file_name}`join @Targetallcourse")
except Exception as custom_caption: print(f"⚠️ Custom Caption Invalid {custom_caption}")

AutoCaptionBotV1 = pyrogram.Client(
Expand All @@ -20,14 +20,14 @@
<b>👋Hello {}</b>
<b>I am an AutoCaption bot</b>
<b>All you have to do is add me to your channel and I will show you my power</b>
<b>@VJ_Botz</b>"""
<b>@Targetallcourse</b>"""

about_message = """
<b>• Name : <a href=https://t.me/VJ_Botz>VJ AutoCaption</a></b>
<b>• Developer : <a href=https://t.me/VJ_Botz>[VJ UPDATES]</a></b>
<b>• Name : <a href=https://t.me/Targetallcourse>VJ AutoCaption</a></b>
<b>• Developer : <a href=https://t.me/Targetallcourse>[VJ UPDATES]</a></b>
<b>• Language : Python3</b>
<b>• Library : Pyrogram v{version}</b>
<b>• Updates : <a href=https://t.me/VJ_Botz>Click Here</a></b>
<b>• Updates : <a href=https://t.me/Targetallcourse>Click Here</a></b>
<b>• Source Code : <a href=https://github.com/VJBots/VJ-AutoCaption-Bot>Click Here</a></b>"""

@AutoCaptionBotV1.on_message(pyrogram.filters.private & pyrogram.filters.command(["start"]))
Expand Down Expand Up @@ -77,7 +77,7 @@ def get_file_details(update: pyrogram.types.Message):
def start_buttons(bot, update):
bot = bot.get_me()
buttons = [[
pyrogram.types.InlineKeyboardButton("Updates", url="t.me/VJ_Botz"),
pyrogram.types.InlineKeyboardButton("Updates", url="t.me/Targetallcourse"),
pyrogram.types.InlineKeyboardButton("About 🤠", callback_data="about")
],[
pyrogram.types.InlineKeyboardButton("➕️ Add To Your Channel ➕️", url=f"http://t.me/{bot.username}?startchannel=true")
Expand All @@ -91,7 +91,7 @@ def about_buttons(bot, update):
return pyrogram.types.InlineKeyboardMarkup(buttons)

print("Telegram AutoCaption V1 Bot Start")
print("Bot Created By https://t.me/VJ_Botz")
print("Bot Created By https://t.me/Targetallcourse")

AutoCaptionBotV1.run()

Expand Down