MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / cb_handler

Function cb_handler

biisal/bot/plugins/commands.py:192–280  ·  view source on GitHub ↗
(client, query)

Source from the content-addressed store, hash-verified

190
191@StreamBot.on_callback_query()
192async def cb_handler(client, query):
193 data = query.data
194 if data == "close":
195 await query.message.delete()
196
197
198 if data == "start":
199 await query.message.edit_caption(
200 caption= TechifyBots.format(query.from_user.mention(style="md")),
201 reply_markup=InlineKeyboardMarkup(
202 [
203 [
204 InlineKeyboardButton("• ᴀʙᴏᴜᴛ •", callback_data="about"),
205 InlineKeyboardButton("• ʜᴇʟᴘ •", callback_data="help")
206 ],
207 [
208 InlineKeyboardButton("♻ ᴅᴇᴠᴇʟᴏᴘᴇʀ ♻", url="https://telegram.me/TechifyRahul")
209 ]
210 ]
211 )
212 )
213
214 elif data == "about":
215 await query.message.edit_caption(
216 caption=f"<b>ᴍʏ ɴᴀᴍᴇ : <a href='https://telegram.me/linkstreamrobot'>ʟɪɴᴋ sᴛʀᴇᴀᴍ ʀᴏʙᴏᴛ</a>\nʜᴏsᴛᴇᴅ ᴏɴ : ᴋᴏʏᴇʙ\nᴅᴀᴛᴀʙᴀsᴇ : ᴍᴏɴɢᴏ ᴅʙ\nʟᴀɴɢᴜᴀɢᴇ : ᴘʏᴛʜᴏɴ 𝟹\nᴍʏ ᴄʀᴇᴀᴛᴏʀ : <a href='https://telegram.me/callownerbot'>ʀᴀʜᴜʟ</a></b>",
217 reply_markup=InlineKeyboardMarkup(
218 [[
219 InlineKeyboardButton("ʜᴏᴍᴇ", callback_data="start"),
220 InlineKeyboardButton("ᴄʟᴏsᴇ", callback_data="close")
221 ]]
222 )
223 )
224 elif data == "donate":
225 await query.message.edit_caption(
226 caption=f"<blockquote>❤️‍🔥 𝐓𝐡𝐚𝐧𝐤𝐬 𝐟𝐨𝐫 𝐬𝐡𝐨𝐰𝐢𝐧𝐠 𝐢𝐧𝐭𝐞𝐫𝐞𝐬𝐭 𝐢𝐧 𝐃𝐨𝐧𝐚𝐭𝐢𝐨𝐧</blockquote>\n\n<b><i>💞 ɪꜰ ʏᴏᴜ ʟɪᴋᴇ ᴏᴜʀ ʙᴏᴛ ꜰᴇᴇʟ ꜰʀᴇᴇ ᴛᴏ ᴅᴏɴᴀᴛᴇ ᴀɴʏ ᴀᴍᴏᴜɴᴛ ₹𝟷𝟶, ₹𝟸𝟶, ₹𝟻𝟶, ₹𝟷𝟶𝟶, ᴇᴛᴄ.</i></b>\n\n❣️ 𝐷𝑜𝑛𝑎𝑡𝑖𝑜𝑛𝑠 𝑎𝑟𝑒 𝑟𝑒𝑎𝑙𝑙𝑦 𝑎𝑝𝑝𝑟𝑒𝑐𝑖𝑎𝑡𝑒𝑑 𝑖𝑡 ℎ𝑒𝑙𝑝𝑠 𝑖𝑛 𝑏𝑜𝑡 𝑑𝑒𝑣𝑒𝑙𝑜𝑝𝑚𝑒𝑛𝑡\n\n💖 𝐔𝐏𝐈 𝐈𝐃 : <code>TechifyBots@UPI</code>",
227 reply_markup=InlineKeyboardMarkup(
228 [[
229 InlineKeyboardButton("ʙᴀᴄᴋ", callback_data="help"),
230 InlineKeyboardButton("ᴄʟᴏsᴇ", callback_data="close")
231 ]]
232 )
233 )
234
235 elif data == "help":
236 await query.message.edit_caption(
237 caption=f"<b>You Don't Need Many Commands To Use This Bot 😅.\n\nJust Send Me Files And I Will Give You Direct Download & Streaming Link.\n\nAlso You Can Use Me In Your Channel..Just Add Me And Make Me Admin And See My Power 🔥</b>",
238 reply_markup=InlineKeyboardMarkup(
239 [
240 [InlineKeyboardButton("👨‍💻 ʀᴇᴘᴏ", url="https://github.com/TechifyBots/File-Stream-Bot"),
241 InlineKeyboardButton("💥 ᴅᴏɴᴀᴛᴇ", callback_data="donate")],
242 [InlineKeyboardButton("ʜᴏᴍᴇ", callback_data="start")]
243 ]
244 )
245 )
246
247 elif data.startswith("sendAlert"):
248 user_id =(data.split("_")[1])
249 user_id = int(user_id.replace(' ' , ''))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected