Skip to content

Commit

Permalink
File-Sharing-Man v3 Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrismanaziz authored Feb 11, 2022
1 parent 1e9c101 commit dace35c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ async def start(self):
except Exception as a:
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning(
"Bot tidak dapat Mengambil link Undangan dari FORCE_SUB_CHANNEL!"
"Bot tidak dapat Mengambil link invite dari FORCE_SUB_CHANNEL!"
)
self.LOGGER(__name__).warning(
f"Silakan periksa kembali var FORCE_SUB_CHANNEL dan Pastikan Bot anda Admin di Channel dengan izin link invite Pengguna melalui link undangan, Subs Channel Saat Ini: {FORCE_SUB_CHANNEL}"
f"Silakan periksa kembali var FORCE_SUB_CHANNEL dan Pastikan Bot anda Admin di Channel Tersebut dengan izin link invite Pengguna melalui link undangan, Chat ID F-Subs Channel Saat Ini: {FORCE_SUB_CHANNEL}"
)
self.LOGGER(__name__).info(
"Bot Berhenti. Gabung Group https://t.me/SharingUserbot untuk Bantuan"
Expand All @@ -59,10 +59,10 @@ async def start(self):
except Exception as a:
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning(
"Bot tidak dapat Mengambil link Undangan dari FORCE_SUB_GROUP!"
"Bot tidak dapat Mengambil link invite dari FORCE_SUB_GROUP!"
)
self.LOGGER(__name__).warning(
f"Silakan periksa kembali var FORCE_SUB_GROUP dan Pastikan Bot anda Admin di Channel dengan izin link invite Pengguna melalui link undangan, Subs Group Saat Ini: {FORCE_SUB_GROUP}"
f"Silakan periksa kembali var FORCE_SUB_GROUP dan Pastikan Bot anda Admin di Group Tersebut dengan izin link invite Pengguna melalui link undangan, Chat ID F-Subs Group Saat Ini: {FORCE_SUB_GROUP}"
)
self.LOGGER(__name__).info(
"Bot Berhenti. Gabung Group https://t.me/SharingUserbot untuk Bantuan"
Expand Down
16 changes: 8 additions & 8 deletions plugins/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def start_button(client):
if not FORCE_SUB_CHANNEL and FORCE_SUB_GROUP:
buttons = [
[
InlineKeyboardButton(text="𝗚𝗥𝗢𝗨𝗣", url=client.invitelink2),
InlineKeyboardButton(text="ɢʀᴏᴜᴘ", url=client.invitelink2),
],
[
InlineKeyboardButton(text="• ᴛᴇɴᴛᴀɴɢ sᴀʏᴀ •", callback_data="about"),
Expand All @@ -29,7 +29,7 @@ def start_button(client):
if FORCE_SUB_CHANNEL and not FORCE_SUB_GROUP:
buttons = [
[
InlineKeyboardButton(text="𝗖𝗛𝗔𝗡𝗡𝗘𝗟", url=client.invitelink),
InlineKeyboardButton(text="ᴄʜᴀɴɴᴇʟ", url=client.invitelink),
],
[
InlineKeyboardButton(text="• ᴛᴇɴᴛᴀɴɢ sᴀʏᴀ •", callback_data="about"),
Expand All @@ -43,8 +43,8 @@ def start_button(client):
InlineKeyboardButton(text="• ᴛᴇɴᴛᴀɴɢ sᴀʏᴀ •", callback_data="about"),
],
[
InlineKeyboardButton(text="𝗖𝗛𝗔𝗡𝗡𝗘𝗟", url=client.invitelink),
InlineKeyboardButton(text="𝗚𝗥𝗢𝗨𝗣", url=client.invitelink2),
InlineKeyboardButton(text="ᴄʜᴀɴɴᴇʟ", url=client.invitelink),
InlineKeyboardButton(text="ɢʀᴏᴜᴘ", url=client.invitelink2),
],
[InlineKeyboardButton(text="• ᴛᴜᴛᴜᴘ •", callback_data="close")],
]
Expand All @@ -55,7 +55,7 @@ def fsub_button(client, message):
if not FORCE_SUB_CHANNEL and FORCE_SUB_GROUP:
buttons = [
[
InlineKeyboardButton(text="𝗚𝗥𝗢𝗨𝗣", url=client.invitelink2),
InlineKeyboardButton(text="ᴊᴏɪɴ ɢʀᴏᴜᴘ", url=client.invitelink2),
],
]
try:
Expand All @@ -73,7 +73,7 @@ def fsub_button(client, message):
if FORCE_SUB_CHANNEL and not FORCE_SUB_GROUP:
buttons = [
[
InlineKeyboardButton(text="𝗖𝗛𝗔𝗡𝗡𝗘𝗟", url=client.invitelink),
InlineKeyboardButton(text="ᴊᴏɪɴ ᴄʜᴀɴɴᴇʟ", url=client.invitelink),
],
]
try:
Expand All @@ -91,8 +91,8 @@ def fsub_button(client, message):
if FORCE_SUB_CHANNEL and FORCE_SUB_GROUP:
buttons = [
[
InlineKeyboardButton(text="𝗖𝗛𝗔𝗡𝗡𝗘𝗟", url=client.invitelink),
InlineKeyboardButton(text="𝗚𝗥𝗢𝗨𝗣", url=client.invitelink2),
InlineKeyboardButton(text="ᴊᴏɪɴ ᴄʜᴀɴɴᴇʟ", url=client.invitelink),
InlineKeyboardButton(text="ᴊᴏɪɴ ɢʀᴏᴜᴘ", url=client.invitelink2),
],
]
try:
Expand Down
2 changes: 1 addition & 1 deletion plugins/cbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
data = query.data
if data == "about":
await query.message.edit_text(
text=f"<b>Tentang Bot ini:\n\n • Owner: @{OWNER}\n • Channel: @{CHANNEL}\n • Group: @{GROUP}\n • Source Code: <a href='https://github.com/mrismanaziz/File-Sharing-Man'>Klik Disini</a></b>\n",
text=f"<b>Tentang Bot ini:\n\n • Owner: @{OWNER}\n • Channel: @{CHANNEL}\n • Group: @{GROUP}\n • Source Code: <a href='https://github.com/mrismanaziz/File-Sharing-Man'>Klik Disini</a>\n • Owner Repo: @mrismanaziz</b>\n",
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("• ᴛᴜᴛᴜᴘ •", callback_data="close")]]
Expand Down
4 changes: 2 additions & 2 deletions plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def not_joined(client: Bot, message: Message):
)


@Bot.on_message(filters.command("users") & filters.private & filters.user(ADMINS))
@Bot.on_message(filters.command(["users", "stats"]) & filters.user(ADMINS))
async def get_users(client: Bot, message: Message):
msg = await client.send_message(
chat_id=message.chat.id, text="<code>Processing ...</code>"
Expand All @@ -160,7 +160,7 @@ async def get_users(client: Bot, message: Message):
await msg.edit(f"{len(users)} <b>Pengguna menggunakan bot ini</b>")


@Bot.on_message(filters.private & filters.command("broadcast") & filters.user(ADMINS))
@Bot.on_message(filters.command("broadcast") & filters.user(ADMINS))
async def send_text(client: Bot, message: Message):
if message.reply_to_message:
query = await query_msg()
Expand Down

0 comments on commit dace35c

Please sign in to comment.