Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def approve(_, m : Message):
try:
add_group(m.chat.id)
await app.approve_chat_join_request(op.id, kk.id)
await app.send_message(kk.id, "**Hello {}!\nWelcome To {}\n\n__Powerd By : @VJ_Botz __**".format(m.from_user.mention, m.chat.title))
await app.send_message(kk.id, "**Hello {}!\nWelcome To {}\n\n__Powerd By : @Tgroboticbot**".format(m.from_user.mention, m.chat.title))
add_user(kk.id)
except errors.PeerIdInvalid as e:
print("user isn't start bot(means group)")
Expand Down Expand Up @@ -55,12 +55,12 @@ async def op(_, m :Message):
return
keyboard = InlineKeyboardMarkup(
[[
InlineKeyboardButton("🗯 Channel", url="https://t.me/vj_botz"),
InlineKeyboardButton("💬 Support", url="https://t.me/vj_bot_disscussion")
InlineKeyboardButton("🗯 Channel", url="https://t.me/Tgrobotic"),
InlineKeyboardButton("💬 Support", url="https://t.me/Tgrobotic")
]]
)
add_user(m.from_user.id)
await m.reply_photo("https://graph.org/file/d57d6f83abb6b8d0efb02.jpg", caption="**🦊 Hello {}!\nI'm an auto approve [Admin Join Requests]({}) Bot.\nI can approve users in Groups/Channels.Add me to your chat and promote me to admin with add members permission.\n\n__Powered By : @VJ_Botz __**".format(m.from_user.mention, "https://t.me/telegram/153"), reply_markup=keyboard)
await m.reply_photo("https://graph.org/file/d57d6f83abb6b8d0efb02.jpg", caption="**🦊 Hello {}!\nI'm an auto approve [Admin Join Requests]({}) Bot.\nI can approve users in Groups/Channels.Add me to your chat and promote me to admin with add members permission.\n\n__Powered By : @Tgroboticbot**".format(m.from_user.mention, "https://t.me/telegram/153"), reply_markup=keyboard)


#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ callback ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand All @@ -74,12 +74,12 @@ async def chk(_, cb : CallbackQuery):
return
keyboard = InlineKeyboardMarkup(
[[
InlineKeyboardButton("🗯 Channel", url="https://t.me/vj_botz"),
InlineKeyboardButton("💬 Support", url="https://t.me/vj_bot_disscussion")
InlineKeyboardButton("🗯 Channel", url="https://t.me/Tgrobotic"),
InlineKeyboardButton("💬 Support", url="https://t.me/Tgrobotic")
]]
)
add_user(m.from_user.id)
await cb.edit_text(text="**🦊 Hello {}!\nI'm an auto approve [Admin Join Requests]({}) Bot.\nI can approve users in Groups/Channels.Add me to your chat and promote me to admin with add members permission.\n\n__Powered By : @VJ_Botz __**".format(cb.from_user.mention, "https://t.me/telegram/153"), reply_markup=keyboard)
await cb.edit_text(text="**🦊 Hello {}!\nI'm an auto approve [Admin Join Requests]({}) Bot.\nI can approve users in Groups/Channels.Add me to your chat and promote me to admin with add members permission.\n\n__Powered By : @@Tgroboticbot__**".format(cb.from_user.mention, "https://t.me/telegram/153"), reply_markup=keyboard)


#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ info ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down
10 changes: 5 additions & 5 deletions configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

class Config:
API_ID = int(getenv("API_ID", ""))
API_HASH = getenv("API_HASH", "")
BOT_TOKEN = getenv("BOT_TOKEN", "")
API_HASH = getenv("d5ea503a893548d7d492f91fc72e8ce9", "")
BOT_TOKEN = getenv("7729291712:AAEyuIgE7VLStp1tpZrKiEVrTFFjUujZJks", "")
# Your Force Subscribe Channel Id Below
CHID = int(getenv("CHID", "")) # Make Bot Admin In This Channel
CHID = int(getenv("-1002662027422", "")) # Make Bot Admin In This Channel
# Admin Or Owner Id Below
SUDO = list(map(int, getenv("SUDO", "").split()))
MONGO_URI = getenv("MONGO_URI", "")
SUDO = list(map(int, getenv("7439650239", "").split()))
MONGO_URI = getenv("mongodb+srv://visionadsproway:<ngn757UgMUDriYNR>@cluster0.cqwby8x.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0", "")

cfg = Config()

Expand Down