en
Feedback
Hazex TBC Codes

Hazex TBC Codes

Open in Telegram
363
Subscribers
No data24 hours
+57 days
+3530 days
Posts Archive
📌 TBC Broadcast Code For Any Type Message with Caption 🚀 Command 1: /broadcast 🛠 Code:
admin = "YourTelegramID"
if admin != str(u):
    raise ReturnCommand()
if options == None:
    bot.replyText(u, "<b>🎙️ Send Any Message To Broadcast in HTML\n\nTo Cancel: /cancel</>")
    Bot.handleNextCommand("/broadcast", options=True)
    raise ReturnCommand()
else:
    if message.text == "/cancel":
        bot.sendMessage("<b>❌ Cancelled</>")
        raise ReturnCommand()

def broadcast(method, txt, fileId):
    typ = method.lower()
    if method == "Message":
        code = f"""bot.sendMessage(chat_id=u, text='''{txt}''', parse_mode="html")"""
    elif str(txt) == "None":
        code = f"""bot.send{method}(chat_id=u, {typ}="{fileId}")"""
    else:
        code = f"""bot.send{method}(chat_id=u, {typ}="{fileId}", caption='''{txt}''', parse_mode="html")"""
    return code
txt = str(message.caption)
if txt == "None":
    txt = message.text
if message.photo:
    code = broadcast("Photo", txt, message.photo[-1].file_id)
elif message.text:
    code = broadcast("Message", txt, None)
elif message.video:
    code = broadcast("Video", txt, message.video.file_id)
elif message.audio:
    code = broadcast("Audio", txt, message.audio.file_id)
elif message.document:
    code = broadcast("Document", txt, message.document.file_id)
elif message.sticker:
    code = broadcast("Sticker", txt, message.sticker.file_id)
elif message.animation:
    code = broadcast("Animation", txt, message.animation.file_id)
else:
    bot.sendMessage("<b>❌ Wrong File Format!</>")
    raise ReturnCommand()
url = libs.webhook.getUrlFor("/broadResult", u)
task = Bot.broadcast(code=code, callback_url=url)
Bot.saveData(task, None)
bot.sendMessage("<b>🔁 Broadcast Processing...</b>")
🚀 Command 2: /broadResult 🛠 Code:
try:
    get = options.json
    total = get.total
    success = get.total_success
    fail = get.total_errors
    
    txt = f"""<b>
🎙️ Broadcast Done
    
👥 Total: {total}
✅ Success: {success}
❌ Failed: {fail}
</b>"""
    bot.sendMessage(txt)
except:
    bot.sendMessage("<b>❌ Broadcast Data Process Failed</b>")
⚠️ Replace YourTelegramId With Your Telegram ID 🚨 Must Give Credit If You Are Posting On Your Channel ┌©️ Credit: @HazexTBC ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: @HxChat

Want TBC Broadcast Code That Can Broadcast Any Type Message with Caption and without API?
Anonymous voting

✅ Theme Increased To 10

📔 API Name: Logo Maker 🔗 API URL: https://hazexweb.000webhostapp.com/api/logo Action: Generate Logo With Themes and Without Watermark 🔻 Request Method: No Request (Direct Image) 🔮 Parameters:   text: Logo Text *   theme: 1 to 10 * ├ 1 = Shadow ├ 2 = Bat Man ├ 3 = Bear ├ 4 = Black Pink ├ 5 = Break Wall ├ 6 = Light Glow Sliced Text ├ 7 = Firework Sparkle ├ 8 = Neon Text Effect ├ 9 = Holographic 3D Text └ 10 = Advance Glow Text 💠 Example: https://hazexweb.000webhostapp.com/api/logo?theme=1&text=Text ©️ Copy Claims By: @HazexAPI ⚠️ This API is Only For Demo Purpose

sticker.webp0.26 KB

📌 Get Free API's | @HazexTBC ➖➖➖➖➖➖➖➖➖➖➖➖➖➖ 🔻 API: TVMaze ✨ API Info: TV Show Data 🔗 URL: http://www.tvmaze.com/api 🔮 Category: Video 🧿 Total Click: 93

📌 How To Use sendMediaGroup in TBC 🛠 TPY Code:
media_group = [
InputMediaPhoto(media='image_url', caption='Caption 1'), InputMediaPhoto(media='image_url', caption='Caption 2')
]

bot.sendMediaGroup(chat_id=u, media=media_group)
┌©️ Credit: @HazexTBC ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: @HxChat

🤖 Telegram Image Search Bot 👉 Bot: @HazexImg_Bot 📌 About Bot - Bot Can Download HD Images, with Advance Setting Options ✨ Features - - Unlimited Search - Fast Service - HD Images - One Click DownloadUse Keywords in Some Word and it will Not Generate Image

🌱 Happy Tulsi Pujan Diwas
🌱 Happy Tulsi Pujan Diwas

📌 AI Girlfriend TPY Code 🚀 Command: * 🛠 TPY Code:
bot.sendChatAction(chat_id=message.chat.id, action="typing")
ms = message.text
url = f"https://chatgpt.apinepdev.workers.dev/?question={ms}&state=girlfriend"
try:
    get = bunchify(HTTP.get(url).json())
    bot.replyText(chat_id=u, text=get["answer"])
except:
    bot.replyText(chat_id=u, reply_to_message_id=message.message_id, text="<b>❌ Error Occurred!</b>")
⚠️ Must Give Credit If You Are Posting On Your Channel ┌©️ Credit: @HazexTBC ├🎖 API By: @Prime_NepCoder ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: @HxChat

🎹 Best Music Downloader Bot with Quality Options 🎵 Bot - @xyzMusic_Bot

🛑 Break from Telegram for 1 Month 🔜 New Codes Coming Soon

🔻 Click on Button To Generate Random Anime Pics With Your Name
🔻 Click on Button To Generate Random Anime Pics With Your Name

📌 Random Anime Pic With Refresh Button TPY Code 🚀 Command: /anime 🛠 TPY Code:
markup = InlineKeyboardMarkup()
markup.add( InlineKeyboardButton( text="🔁 Refresh", callback_data="/anime edit"))

api = bunchify(HTTP.get("https://nekos.life/api/v2/img/neko").json())

anime = api['url']
media = InputMediaPhoto(media=f"{anime}")

if params == 'None':
    bot.sendPhoto(chat_id=u, photo=anime, reply_markup=markup)

if params == "edit":
    bot.editMessageMedia(chat_id=u, message_id=message.message_id, media=media, reply_markup=markup)
©️ Credit: @HazexTBC ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: Group Chat ⚠️ NOTE :- MUST GIVE CREDIT IF YOU ARE POSTING THIS IN YOUR CHANNEL

📌 Random Anime Pic TPY Code 🚀 Command: /anime 🛠 TPY Code:
api = bunchify(HTTP.get("https://nekos.life/api/v2/img/neko").json())
pic = api['url']

bot.sendPhoto(chat_id=u, photo = pic)
©️ Credit: @HazexTBC ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: Group Chat ⚠️ NOTE :- MUST GIVE CREDIT IF YOU ARE POSTING THIS IN YOUR CHANNEL

✅ Bot Restored ⚙️ All Functions Working Fine 🤖 Bot - @HazexBot

📌 Chat GPT TPY Code 🚀 Command: * 🛠 TPY Code:
bot.sendChatAction( 
    chat_id=message.chat.id, 
    action="typing")
ms = message.text
url = f"https://chatgpt.apinepdev.workers.dev/?question={ms}"
try:
    get = bunchify(HTTP.get(url).json())
    bot.replyText(chat_id=u, reply_to_message_id=message.message_id, text=get["answer"])
except:
    bot.replyText(chat_id=u, reply_to_message_id=message.message_id, text="<b>❌ Error Occurred!</b>")
©️ Credit @HazexTBC ├🎖 API By - @Prime_NepCoder ├👨🏻‍💻 Developer: @MrHazex └‼️ Error & Support: Group Chat

👨🏻‍💻 Want to Post this type post in your Channel 🤖 Use - @HazexPost_Bot

🔻 Click on Button To Generate Random Anime Pics
🔻 Click on Button To Generate Random Anime Pics