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
26 changes: 9 additions & 17 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# Don't Remove Credit @VJ_Botz
# Subscribe YouTube Channel For Amazing Bot @Tech_VJ
# Ask Doubt on telegram @KingVJ01

import pyrogram, os, asyncio

app_id = int(os.environ.get("app_id", ""))
api_hash = os.environ.get("api_hash", "")
bot_token = os.environ.get("bot_token", "")
app_id = int(os.environ.get("app_id", "25210379"))
api_hash = os.environ.get("api_hash", "2f43e4bccc419e3b7e28e3219bb1d68c")
bot_token = os.environ.get("bot_token", "8093813577:AAF9eSk-P04QhCNqZpU4_cThFYCKRkMmZmM")
custom_caption = os.environ.get("custom_caption", "`{file_name}`\n\n**Powered By - @VJ_Botz**") # Here You Can Give Anything, if You Want Real File Name Then Use {file_name}

AutoCaptionBotV1 = pyrogram.Client(name="AutoCaptionBotV1", api_id=app_id, api_hash=api_hash, bot_token=bot_token)

start_message = """
<b>👋Hello {}</b>
<b>👋Hello {mention}</b>
<b>I am an AutoCaption bot</b>
<b>All you have to do is to add me to your channel as admin and I will show you my power</b>
<b>@VJ_Botz</b>"""
<b>@HollyMovies4</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/HollyMovies4>VJ AutoCaption</a></b>
<b>• Developer : <a href=https://t.me/HollyMovies4>[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>
Expand Down Expand Up @@ -74,7 +70,7 @@ def start_buttons(bot, update):
pyrogram.types.InlineKeyboardButton("Updates", url="t.me/VJ_Botz"),
pyrogram.types.InlineKeyboardButton("About 🤠", callback_data="about")
],[
pyrogram.types.InlineKeyboardButton("➕️ Add To Your Channel ➕️", url=f"http://t.me/{bot.username}?startchannel=true")
pyrogram.types.InlineKeyboardButton("➕️ Add To Your Channel ➕️", url=f"http://t.me/{bot.ProAutoRenamerBot}?startchannel=true")
]]
return pyrogram.types.InlineKeyboardMarkup(buttons)

Expand All @@ -85,10 +81,6 @@ def about_buttons(bot, update):
return pyrogram.types.InlineKeyboardMarkup(buttons)

print("Telegram AutoCaption V1 Bot Start")
print("Bot Created By @VJ_Botz")
print("Bot Created By @HollyMovies4")

AutoCaptionBotV1.run()

# Don't Remove Credit @VJ_Botz
# Subscribe YouTube Channel For Amazing Bot @Tech_VJ
# Ask Doubt on telegram @KingVJ01