MCPcopy Index your code
hub / github.com/TechifyBots/File-Stream-Bot / help_cd

Function help_cd

biisal/bot/plugins/commands.py:87–140  ·  view source on GitHub ↗
(b, m)

Source from the content-addressed store, hash-verified

85
86@StreamBot.on_message(filters.command("help") & filters.private )
87async def help_cd(b, m):
88 if not await db.is_user_exist(m.from_user.id):
89 await db.add_user(m.from_user.id)
90 await b.send_message(
91 Var.NEW_USER_LOG,
92 f"#𝐍𝐞𝐰𝐔𝐬𝐞𝐫\n\n**᚛› 𝐍𝐚𝐦𝐞 - [{m.from_user.first_name}](tg://user?id={m.from_user.id})**"
93 )
94 if Var.UPDATES_CHANNEL != "None":
95 try:
96 user = await b.get_chat_member(Var.UPDATES_CHANNEL, m.chat.id)
97 if user.status == "kicked":
98 await b.send_message(
99 chat_id=m.chat.id,
100 text="ꜱᴏʀʀʏ ʏᴏᴜ ᴀʀᴇ ʙᴀɴɴᴇᴅ ᴛᴏ ᴜꜱᴇ ᴍᴇ ᴘʟᴇᴀꜱᴇ ᴄᴏɴᴛᴀᴄᴛ ᴏᴡɴᴇʀ ꜰᴏʀ ᴍᴏʀᴇ ᴅᴇᴛᴀɪʟꜱ.",
101 disable_web_page_preview=True
102 )
103 return
104 except UserNotParticipant:
105 await StreamBot.send_photo(
106 chat_id=m.chat.id,
107 photo="https://graph.org/file/a8095ab3c9202607e78ad.jpg",
108 caption=f"{m.from_user.mention},\n\n<b><i>⚠️ ᴊᴏɪɴ ᴍʏ ᴜᴘᴅᴀᴛᴇs ᴄʜᴀɴɴᴇʟ ᴛᴏ ᴜsᴇ ᴍᴇ.</i></b>\n\n<i>ᴅᴜᴇ ᴛᴏ sᴇʀᴠᴇʀ ᴏᴠᴇʀʟᴏᴀᴅ, ᴏɴʟʏ ᴏᴜʀ ᴄʜᴀɴɴᴇʟ sᴜʙsᴄʀɪʙᴇʀs ᴄᴀɴ ᴜsᴇ ᴛʜɪs ʙᴏᴛ 😊</i>",
109 reply_markup=InlineKeyboardMarkup(
110 [
111 [
112 InlineKeyboardButton("ᴊᴏɪɴ ɴᴏᴡ 🚩", url=f"https://telegram.me/{Var.UPDATES_CHANNEL}")
113 ]
114 ]
115 ),
116
117 )
118 return
119 except Exception:
120 await b.send_message(
121 chat_id=m.chat.id,
122 text="ꜱᴏᴍᴇᴛʜɪɴɢ ᴡᴇɴᴛ ᴡʀᴏɴɢ ᴄᴏɴᴛᴀᴄᴛ [ᴏᴡɴᴇʀ](https://telegram.me/callOwnerBot).",
123 disable_web_page_preview=True)
124 return
125 await StreamBot.send_photo(
126 chat_id=m.chat.id,
127 photo=random.choice(Var.PICS),
128 caption="""<b>You Don&#x27;t Need Many Commands To Use This Bot 😅.
129
130Just Send Me Files And I Will Give You Direct Download & Streaming Link.
131
132Also You Can Use Me In Your Channel..Just Add Me And Make Me Admin And See My Power 🔥</b>""",
133 reply_markup=InlineKeyboardMarkup(
134 [
135 [InlineKeyboardButton("👨‍💻 ʀᴇᴘᴏ", url="https://github.com/TechifyBots/File-Stream-Bot"),
136 InlineKeyboardButton("💥 ᴅᴏɴᴀᴛᴇ", callback_data="donate")],
137 [InlineKeyboardButton("✗ ᴄʟᴏsᴇ ✗", callback_data="close")]
138 ]
139 )
140)
141
142@StreamBot.on_message(filters.command('ban') & filters.user(Var.OWNER_ID))
143async def do_ban(bot , message):

Callers

nothing calls this directly

Calls 2

is_user_existMethod · 0.80
add_userMethod · 0.80

Tested by

no test coverage detected