2 882
مشترکین
-424 ساعت
-337 روز
-10430 روز
آرشیو پست ها
2 882
🦁 Update 🤖
@EskoIDBot has been updated!
You can now easily obtain user IDs, group IDs, channel IDs, and bot IDs with just a simple click of a button. No more need to forward messages!
2 882
🤖 TBC Pinned Message Broadcast Code
Command :
/broadcast
admin_user = 123456789 #replace with your id
if admin_user != u:
raise ReturnCommand()
if options is None:
bot.replyText(
u, "<b>📢 Send a message to broadcast.\n\nUse /cancel to stop.</b>",
parse_mode="html"
)
Bot.handleNextCommand("/broadcast", options=True)
raise ReturnCommand()
else:
if message.text == "/cancel":
bot.sendMessage(chat_id=u, text="<b>❌ Broadcast cancelled.</b>", parse_mode="html")
Bot.runCommand("/start")
raise ReturnCommand()
def send_photo(caption, file_id):
msg = bot.sendPhoto(chat_id=u, photo=file_id, caption=caption) if caption else bot.sendPhoto(chat_id=u, photo=file_id)
return msg.message_id if msg else None
def send_video(caption, file_id):
msg = bot.sendVideo(chat_id=u, video=file_id, caption=caption) if caption else bot.sendVideo(chat_id=u, video=file_id)
return msg.message_id if msg else None
def send_audio(caption, file_id):
msg = bot.sendAudio(chat_id=u, audio=file_id, caption=caption) if caption else bot.sendAudio(chat_id=u, audio=file_id)
return msg.message_id if msg else None
def send_document(caption, file_id):
msg = bot.sendDocument(chat_id=u, document=file_id, caption=caption) if caption else bot.sendDocument(chat_id=u, document=file_id)
return msg.message_id if msg else None
def send_sticker(file_id):
msg = bot.sendSticker(chat_id=u, sticker=file_id)
return msg.message_id if msg else None
def send_animation(caption, file_id):
msg = bot.sendAnimation(chat_id=u, animation=file_id, caption=caption) if caption else bot.sendAnimation(chat_id=u, animation=file_id)
return msg.message_id if msg else None
message_text = str(message.caption) if message.caption else str(message.text)
broadcast_message_id = None
if message.photo:
broadcast_message_id = send_photo(message_text, message.photo[-1].file_id)
elif message.text:
sent_msg = bot.sendMessage(chat_id=u, text=message_text, parse_mode="html")
broadcast_message_id = sent_msg.message_id if sent_msg else None
elif message.video:
broadcast_message_id = send_video(message_text, message.video.file_id)
elif message.audio:
broadcast_message_id = send_audio(message_text, message.audio.file_id)
elif message.document:
broadcast_message_id = send_document(message_text, message.document.file_id)
elif message.sticker:
broadcast_message_id = send_sticker(message.sticker.file_id)
elif message.animation:
broadcast_message_id = send_animation(message_text, message.animation.file_id)
else:
bot.sendMessage(chat_id=u, text="<b>⚠️ Unsupported file type!</b>", parse_mode="html")
raise ReturnCommand()
# Pin the message after broadcasting
if broadcast_message_id:
bot.pinChatMessage(chat_id=u, message_id=broadcast_message_id)
bot.sendMessage(chat_id=u, text="<b>✅ Broadcast sent and pinned successfully.</b>", parse_mode="html")
⚠️ Give Credit If U Are Posting In Your Channel.
👨💻 Created By: @EskoDrums
©️ Credit : @EskoCoding
‼️ Error & Support: @TBCcoding2 882
🤖 TBC Pinned Message Broadcast Code
admin_user = 123456789 #replace with your id
if admin_user != u:
raise ReturnCommand()
if options is None:
bot.replyText(
u, "<b>📢 Send a message to broadcast.\n\nUse /cancel to stop.</b>",
parse_mode="html"
)
Bot.handleNextCommand("/broadcast", options=True)
raise ReturnCommand()
else:
if message.text == "/cancel":
bot.sendMessage(chat_id=u, text="<b>❌ Broadcast cancelled.</b>", parse_mode="html")
Bot.runCommand("/start")
raise ReturnCommand()
def send_photo(caption, file_id):
msg = bot.sendPhoto(chat_id=u, photo=file_id, caption=caption) if caption else bot.sendPhoto(chat_id=u, photo=file_id)
return msg.message_id if msg else None
def send_video(caption, file_id):
msg = bot.sendVideo(chat_id=u, video=file_id, caption=caption) if caption else bot.sendVideo(chat_id=u, video=file_id)
return msg.message_id if msg else None
def send_audio(caption, file_id):
msg = bot.sendAudio(chat_id=u, audio=file_id, caption=caption) if caption else bot.sendAudio(chat_id=u, audio=file_id)
return msg.message_id if msg else None
def send_document(caption, file_id):
msg = bot.sendDocument(chat_id=u, document=file_id, caption=caption) if caption else bot.sendDocument(chat_id=u, document=file_id)
return msg.message_id if msg else None
def send_sticker(file_id):
msg = bot.sendSticker(chat_id=u, sticker=file_id)
return msg.message_id if msg else None
def send_animation(caption, file_id):
msg = bot.sendAnimation(chat_id=u, animation=file_id, caption=caption) if caption else bot.sendAnimation(chat_id=u, animation=file_id)
return msg.message_id if msg else None
message_text = str(message.caption) if message.caption else str(message.text)
broadcast_message_id = None
if message.photo:
broadcast_message_id = send_photo(message_text, message.photo[-1].file_id)
elif message.text:
sent_msg = bot.sendMessage(chat_id=u, text=message_text, parse_mode="html")
broadcast_message_id = sent_msg.message_id if sent_msg else None
elif message.video:
broadcast_message_id = send_video(message_text, message.video.file_id)
elif message.audio:
broadcast_message_id = send_audio(message_text, message.audio.file_id)
elif message.document:
broadcast_message_id = send_document(message_text, message.document.file_id)
elif message.sticker:
broadcast_message_id = send_sticker(message.sticker.file_id)
elif message.animation:
broadcast_message_id = send_animation(message_text, message.animation.file_id)
else:
bot.sendMessage(chat_id=u, text="<b>⚠️ Unsupported file type!</b>", parse_mode="html")
raise ReturnCommand()
# Pin the message after broadcasting
if broadcast_message_id:
bot.pinChatMessage(chat_id=u, message_id=broadcast_message_id)
bot.sendMessage(chat_id=u, text="<b>✅ Broadcast sent and pinned successfully.</b>", parse_mode="html")
⚠️ Give Credit If U Are Posting In Your Channel.
👨💻 Created By: @EskoDrums
©️ Credit : @EskoCoding2 882
Repost from Black Card Prive
🚀 Introducing AdRocket Bot – Promote & Earn! 🚀
Want to promote your content for FREE?
@Ad_Rocket_Bot lets you earn points by referring friends and use them to post ads in our big channel(@Ad_Rocket_Channel)! 📢
🔥 How It Works:
✅ Earn 1 point per referral
✅ Post ads for just 10 points
✅ Pin posts for extra 5 points
✅ Track stats & top referrers
Start earning & promoting now! Click below to launch your ads! 👇
🔗 Start Now
2 882
🤖 AI Image Generator TBC Code
Command :
/img
if options is None:
bot.sendMessage("Please provide a prompt. Example:\n`A futuristic city skyline at night.`", parse_mode="Markdown")
bot.handleNextCommand("/img", options=True)
raise ReturnCommand()
prompt = encodeURIComponent(message.text)
api_url = f"https://botfather.cloud/Apis/ImgGen/?prompt={prompt}"
response = HTTP.get(api_url)
if response.status_code == 200:
bot.sendPhoto(response.content)
else:
bot.sendMessage("Failed to generate image. Please try again later.")
⚠️ Give Credit If U Are Posting In Your Channel.
👨💻 Created By: @EskoDrums
©️ Credit : @EskoCoding
©️ API Credit : @JSOrganization2 882
🔥 Convert Images to Stickers with This TBC Code! 🔥
Command :
/conv
if options is None:
Bot.sendMessage(
chat_id=message.chat.id,
text="🙃 *Please send an image to convert it into a sticker!*",
parse_mode="Markdown",
reply_to_message_id=message.message_id
)
bot.handleNextCommand("/conv", options=True)
else:
if not message.photo:
bot.sendMessage("❌ Please send an image to convert it into a sticker! ")
bot.handleNextCommand("/conv", options=True)
raise ReturnCommand()
photo_id = message.photo[-1].file_id
file_data = bot.getFile(photo_id)
file_bytes = bot.downloadFile(file_data.file_path)
Bot.sendSticker(
chat_id=message.chat.id,
sticker=file_bytes,
reply_to_message_id=message.message_id
)
⚠️ Give Credit If U Are Posting In Your Channel.
👨💻 Created By: @EskoDrums
©️ Credit : @EskoCoding2 882
🚀 Introducing the Esko Post Creator Bot! 🎉
Create stunning posts in seconds with inline buttons and shareable links! Engage your audience effortlessly.
👉 Get Started Now!
@EpocsBot
2 882
Unlock the potential of Telegram with my collection of affordable bot codes! Get instant access to:
> * Refer and Earn Bot (English, Amharic, Tigrinya)
> * Amharic Keyboard Bot
> * Font Changer Bot
> * ID Finder Bot
> * Image Search Bot
> * Forward Tag Remover Bot
> * File Store Bot
> * Channel Auto Reaction Bot
> * Poll Maker Bot
> * Calculator Bot
> * Character Counter Bot
> * Share Contact Button
> * Channel Scheduled Quote Poster Bot
>
> Streamline channel management, boost user engagement, and offer unique features. Perfect for small businesses, content creators, and community builders. Contact me for pricing and details!
2 882
QR Code Generator TBC code
Command :
* (You can replace it with another command by updating the code)
tum = message.text
# Define the data for the QR code (this could be a URL, text, etc.)
data_for_qr = tum # Replace with the data you want to encode
# Use the QR code generator API to generate the QR code image
qr_code_url = "https://api.qrserver.com/v1/create-qr-code/?data=" + data_for_qr + "&size=150x150"
# Send the generated QR code to the user
bot.sendPhoto(photo = qr_code_url, caption = "Here is your QR code!")2 882
Google QR Code maker code
add = "your text"
photo = f"http://chart.apis.google.com/chart?cht=qr&chs=500x500&chl={add}&chld=H|0"
bot.sendPhoto(photo=photo,parse_mode="Markdown")
By : @IncomeTeamAdmin2 882
You can use the code below if you want it to be a regular pole/multiple choice poll
question = "Which of these are European capitals?"
options = ["Paris", "London", "Berlin", "Madrid"]
bot.sendPoll(
chat_id=u,
question=question,
options=options,
is_anonymous=False,
type="regular",
allows_multiple_answers=True,
open_period=30 # ⏳ Closes after 30 seconds
)2 882
To send poll quiz with a timer(30sec)
question = "What is the capital of France?"
options = ["Paris", "London", "Berlin", "Madrid"]
bot.sendPoll(
chat_id=u,
question=question,
options=options,
is_anonymous=False,
type="quiz",
correct_option_id=0,
explanation="The capital of France is Paris, known for its art, fashion, and culture.",
open_period=30 # ⏳ The quiz will automatically close after 30 seconds
)2 882
question = "What is the capital of France?"
options = ["Paris", "London", "Berlin", "Madrid"]
bot.sendPoll(
chat_id=u,
question=question,
options=options,
is_anonymous=False,
type="quiz",
correct_option_id=0,
explanation="The capital of France is Paris, known for its art, fashion, and culture.",
open_period=30 # ⏳ The quiz will automatically close after 30 seconds
)