๐ข Auto Caption Bot โ Add It to Your Channel and Experience the Magic! ๐
1๏ธโฃ Add the bot to your Telegram channel as an admin.
2๏ธโฃ Post any media fileโthe bot will automatically reply with all the relevant file details!
---
๐ For Bots.Business Users โ Sample Code:
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
๐ How to Get Started:
1๏ธโฃ Add the bot to your Telegram channel as an admin.
2๏ธโฃ Post any media fileโthe bot will automatically reply with all the relevant file details!
---
๐ For Bots.Business Users โ Sample Code:
var request2 = JSON.parse(request);
function formatFileSize(bytes) {
return (bytes / (1024 * 1024)).toFixed(2) + " MB";
}
if (request2.channel_post) {
var msgid = request2.channel_post.message_id;
var ch = request2.channel_post.sender_chat.id;
var fileInfo = "๐ *File Details:* \n";
var post = request2.channel_post;
// ๐ผ Photo
if (post.photo) {
let photo = post.photo[post.photo.length - 1]; // Get highest quality
fileInfo += "๐ผ *Photo*\n";
fileInfo += "๐ *File ID:* `" + photo.file_id + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(photo.file_size) + "`";
}
// ๐ฅ Video
else if (post.video) {
let video = post.video;
fileInfo += "๐ฅ *Video*\n";
fileInfo += "๐ *File ID:* `" + video.file_id + "`\n";
fileInfo += "๐ *File Name:* `" + (video.file_name || "Unknown") + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(video.file_size) + "`\n";
fileInfo += "โฑ *Duration:* `" + video.duration + " sec`\n";
fileInfo += "๐ *MIME Type:* `" + video.mime_type + "`";
}
// ๐ต Audio
else if (post.audio) {
let audio = post.audio;
fileInfo += "๐ต *Audio*\n";
fileInfo += "๐ *File ID:* `" + audio.file_id + "`\n";
fileInfo += "๐ *File Name:* `" + (audio.file_name || "Unknown") + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(audio.file_size) + "`\n";
fileInfo += "โฑ *Duration:* `" + audio.duration + " sec`\n";
fileInfo += "๐ *MIME Type:* `" + audio.mime_type + "`";
}
// ๐ Document (Including Videos Uploaded as Documents)
else if (post.document) {
let doc = post.document;
let isVideo = doc.mime_type.startsWith("video/");
if (isVideo) {
fileInfo += "๐ฅ *Video (Uploaded as Document)*\n";
} else {
fileInfo += "๐ *Document*\n";
}
fileInfo += "๐ *File ID:* `" + doc.file_id + "`\n";
fileInfo += "๐ *File Name:* `" + (doc.file_name || "Unknown") + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(doc.file_size) + "`\n";
fileInfo += "๐ *MIME Type:* `" + doc.mime_type + "`";
}
// ๐ญ Sticker
else if (post.sticker) {
let sticker = post.sticker;
fileInfo += "๐ญ *Sticker*\n";
fileInfo += "๐ *File ID:* `" + sticker.file_id + "`\n";
fileInfo += "๐ *Emoji:* `" + (sticker.emoji || "None") + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(sticker.file_size) + "`\n";
fileInfo += "๐ *MIME Type:* `" + (sticker.mime_type || "Sticker") + "`";
}
// ๐ GIFs (Sent as Animated Stickers or Documents)
else if (post.animation) {
let animation = post.animation;
fileInfo += "๐ *GIF / Animation*\n";
fileInfo += "๐ *File ID:* `" + animation.file_id + "`\n";
fileInfo += "๐ *File Name:* `" + (animation.file_name || "Unknown") + "`\n";
fileInfo += "๐ *File Size:* `" + formatFileSize(animation.file_size) + "`\n";
fileInfo += "๐ *MIME Type:* `" + animation.mime_type + "`";
}
// โ No File Detected
else {
fileInfo = "โ No supported file detected.";
}
// Send file info to the same channel
Api.sendMessage({
chat_id: ch,
text: fileInfo,
reply_to_message_id: msgid,
parse_mode: "Markdown"
});
}
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
๐12โค2๐1
๐ฌ Exciting Update!
A new code is coming soon that will fetch videos directly from your database channel!
Stay tuned! โณ๐ฅ
A new code is coming soon that will fetch videos directly from your database channel!
Perfect for movie bots and more! ๐ฅ๐
Stay tuned! โณ๐ฅ
๐13๐ฅ5๐2โค1
๐ Force Join Channel in Group [Telebot Creator Code]
๐ป Command:
โข๏ธ TPY:
๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโโ
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Swastik
ยฉ Credit: @BotNations.
โ Using this you can mute the users in your group until they join your Telegram channel once they join and they can click unmute button then the bot will unmute the user if he join the channel and if he / she left the channel then fhe bot will automatically mute the user back in group until they join your channel.
๐ป Command:
* โข๏ธ TPY:
def check():
channels = "@Privates_Bots"#edit with channel username or with id
for i in channels:
check = bot.getChatMember(str(i), u)
if check.status != 'left':
pass
else:
return False
return True
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name} {message.from_user.last_name}</a>"""
if message.from_user.last_name is None:
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name}</a>"""
markup = InlineKeyboardMarkup()
markup.add(InlineKeyboardButton(
text="๐ข Joined",
callback_data=f"/joined {u}"))
tim = int(time.time())
until = tim + 600
if not check():
bot.deleteMessage(chat_id=message.chat.id, message_id=message.message_id)
bot.restrictChatMember(chat_id=message.chat.id, user_id=u, can_send_messages=False, until_date=until)
txt = f"""<b>
๐ Hello {usernm}, Please Join Our Channel To Send Message in This Group
โค {channels}
โ๏ธ After Joining, Click <code>๐ข Joined</code></b>"""
bot.replyText(chat_id=message.chat.id, text=txt, reply_markup=markup)
๐ป Command:
/joinedโข๏ธ TPY:
if params != str(u):
bot.answerCallbackQuery(call.id, 'โ This Message is Not For You', show_alert=True)
raise ReturnCommand()
def check():
channels = ["@Privates_Bots"] # edit with channel username
for i in channels:
member = bot.getChatMember(str(i), u)
if member.status != 'left':
pass
else:
return False
return True
usernm = f"""<a href="tg://user?id={u}">{call.from_user.first_name} {call.from_user.last_name}</a>"""
if call.from_user.last_name is None:
usernm = f"""<a href="tg://user?id={u}">{call.from_user.first_name}</a>"""
if check():
bot.restrictChatMember(chat_id=message.chat.id, user_id=u,
can_send_messages=True,
can_send_media_messages=True, # This includes audios, videos, photos, etc.
can_send_other_messages=True) # This includes polls and documents
bot.editMessageText(chat_id=message.chat.id, message_id=message.message_id,
text=f"<b>๐ {usernm}, Thanks For Joining Our Channel\n\n๐ฌ Now You Can Send Message</b>")
else:
bot.answerCallbackQuery(call.id, 'โ Must Join Our Channels', show_alert=True)
โโโโโโโโโโโโโโโโโ
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Swastik
ยฉ Credit: @BotNations.
๐10โค3๐ฅ2๐ฅฐ2โก1
Bot Nations ๐
๐ฌ Exciting Update! A new code is coming soon that will fetch videos directly from your database channel! Perfect for movie bots and more! ๐ฅ๐ Stay tuned! โณ๐ฅ
This project is now ready and available in both JavaScript (BJS) and PHP! ๐
What do you need to get started? Let us know how we can assist you! ๐ค๐ฌ
What do you need to get started? Let us know how we can assist you! ๐ค๐ฌ
โค25๐ฅ11๐10๐3๐คฉ3๐3๐ซก2โคโ๐ฅ1๐ฅฐ1๐1
Bot Nations ๐
This project is now ready and available in both JavaScript (BJS) and PHP! ๐ What do you need to get started? Let us know how we can assist you! ๐ค๐ฌ
How to Set Up the Bot
1. Claim Your Bot โ Retrieve your bot from @SwastikGiveawayBot.
2. Activate Your Bot โ Input the bot token and make it operational.
3. Connect to Database โ Integrate the bot (as admin) with your designated database channel.
4. Upload Movie Files โ Post movie files in either document video format or standard video format.
--------------------------------------------------------------------
How to Get a Movie?
Simply send the command in your bot:
/get {movie name}
๐น Example: /get Avatar
1. Claim Your Bot โ Retrieve your bot from @SwastikGiveawayBot.
2. Activate Your Bot โ Input the bot token and make it operational.
3. Connect to Database โ Integrate the bot (as admin) with your designated database channel.
4. Upload Movie Files โ Post movie files in either document video format or standard video format.
โข If you are sending a video, please ensure to include a caption with the movie name.
--------------------------------------------------------------------
How to Get a Movie?
Simply send the command in your bot:
/get {movie name}
๐น Example: /get Avatar
๐2
Bot Nations ๐
How to Set Up the Bot 1. Claim Your Bot โ Retrieve your bot from @SwastikGiveawayBot. 2. Activate Your Bot โ Input the bot token and make it operational. 3. Connect to Database โ Integrate the bot (as admin) with your designated database channel. 4. Uploadโฆ
If you want this bot in both TBC and PHP,
please let us know in the comments!
please let us know in the comments!
๐9โค3
Unlock your exclusive access to the Movies Bot in just a few easy steps:
1๏ธโฃ Visit:
2๏ธโฃ Send a message using the following format:
/send {your TBC email}
Example:
/send
โ Instant Delivery
โก Secure Access
๐ฅ Enjoy Seamless Movie Management!
๐8โค3
Bot Nations ๐
๐ฌ Claim Your Movies Bot Today! ๐ฌ Unlock your exclusive access to the Movies Bot in just a few easy steps: 1๏ธโฃ Visit: @private_bots_chats 2๏ธโฃ Send a message using the following format: /send {your TBC email} Example: /send swastikraj127@gmail.com โฆ
Attention everyone! The issue with the bot has been resolved. We encourage you to claim it again.
A special thank you to @Cader_r for bringing this error to our attention! Your help is greatly appreciated.
A special thank you to @Cader_r for bringing this error to our attention! Your help is greatly appreciated.
๐3
๐ Auto Approve Bot [Bots Business Codes]
๐ Command:
๐ BJS :
๐จโ๐ป Created(or Copyright) By: Siya Bots
โ This BJS, Auto Accept User Chat Join Request. Just Add The Tpy And Make The Bot Admin Where You Want To Work.
๐ Command:
*๐ BJS :
if (!request) return
if (typeof request === "string") {
try {
request = JSON.parse(request)
} catch (e) {
return
}
}
let info = request.chat_join_request
if (info) {
Api.sendMessage({
chat_id: info.from.id,
text: "Your request to join the channel has been accepted."
})
Api.approveChatJoinRequest({
chat_id: info.chat.id,
user_id: info.from.id
})
}
๐จโ๐ป Created(or Copyright) By: Siya Bots
๐4๐ฅ3
๐Sticker to Video Converter [TeleBot Creator Code]
๐ Command:
๐ TPY :
๐จโ๐ป Created(or Copyright) By: Y U R A
โHow to Use the Sticker to Video Converter:
1. Reply to a sticker with:
/sticker2video
2. Wait for the video! ๐
๐ Command:
/sticker2video๐ TPY :
if not message.reply_to_message or not message.reply_to_message.sticker:
Bot.sendMessage(
chat_id=message.chat.id,
text="โ *Please reply to a sticker to convert it to a video!*",
parse_mode="Markdown",
reply_to_message_id=message.message_id
)
else:
sticker_id = message.reply_to_message.sticker.file_id
file_data = bot.getFile(sticker_id) # Downloads the sticker
file_bytes = bot.downloadFile(file_data.file_path) # Converts the sticker into bytes
Bot.sendVideo(
chat_id=message.chat.id,
video=file_bytes,
caption="๐ฅ Here is your sticker as a video!",
reply_to_message_id=message.message_id
)
๐จโ๐ป Created(or Copyright) By: Y U R A
๐7โค2
Need Truecaller api??
Drop reaction
Drop reaction
๐ฅฐ17๐14๐7๐ฅ5โค4๐3๐2๐ฏ1
๐ Introducing the Truecaller Lookup API!
Need details about a phone number for verification or identification? Our brand-new API offers real-time lookup powered by Truecaller data to help you fetch information like carrier, location, and more!
๐ Sample API Request:
๐ Example:
๐ก How It Works:
Just replace
๐ Join Our Community:
For updates, support, and discussions, join our group/channel: @BotNations
๐ฐ Creator: @BotNations
ยฉ Copyright: @BotNations
Need details about a phone number for verification or identification? Our brand-new API offers real-time lookup powered by Truecaller data to help you fetch information like carrier, location, and more!
๐ Sample API Request:
https://truecaller.privates-bots.workers.dev/?q={phone_number}
๐ Example:
https://truecaller.privates-bots.workers.dev/?q=+91xxxxxxx
๐ก How It Works:
Just replace
{phone_number} in the API request with the number you want to check (including the country code). Instantly receive details including location, carrier, and name information!๐ Join Our Community:
For updates, support, and discussions, join our group/channel: @BotNations
๐ฐ Creator: @BotNations
ยฉ Copyright: @BotNations
๐3๐ฅฐ3
๐ Truecaller Lookup Bot [Bots Business Code]
---
๐ Command:
โ๏ธ BJS:
โ Command:
๐งพ BJS:
โ ๏ธ Command:
๐งพ BJS:
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
---
๐ Command:
/truecaller โ๏ธ BJS:
let phone = params;
if (!phone) {
Bot.sendMessage("Send like /truecaller +9174846744");
return;
}
HTTP.get({
url: "https://truecaller.privates-bots.workers.dev/?q=" + encodeURIComponent(phone),
success: "/onTruecallerSuccess",
error: "/onTruecallerError"
});
โ Command:
/onTruecallerSuccess ๐งพ BJS:
let res = JSON.parse(content);
let msg = "โ Lookup Result:\n\n";
msg += "Phone: " + res.international_format + "\n";
msg += "Carrier: " + res.carrier + "\n";
msg += "Country: " + res.country + "\n";
msg += "Location: " + res.location + "\n";
msg += "Timezones: " + res.timezones + "\n";
msg += "Truecaller Name: " + res.Truecaller + "\n";
msg += "Other Info: " + res.Unknown + "\n";
Bot.sendMessage(msg);
โ ๏ธ Command:
/onTruecallerError ๐งพ BJS:
Bot.sendMessage("Sorry, we couldn't fetch the data. Please try again later or check the number format.");๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
๐7โค1
Forwarded from TแดสแดBแดแด Cสแดแดแดแดส Cแดแด
แดs โ
๐ก TBC Broadcast Working Code All Type Like Photo Video Etc!
โก๏ธ Command:-
/broadcast
# Admin ID
admin_id = "5960085256"
# Command: /broadcast
if admin_id != str(u):
raise ReturnCommand()
if options is None:
bot.replyText(
u,
"<b>๐๏ธ Send Any Message to Broadcast in HTML\n\nTo Cancel: /cancel</b>",
parse_mode="html",
)
Bot.handleNextCommand("/broadcast", options=True)
raise ReturnCommand()
if message.text == "/cancel":
bot.sendMessage(
chat_id=u, text="<b>โ Broadcast Cancelled</b>", parse_mode="html"
)
raise ReturnCommand()
file_types = {
"photo": ("send_photo", message.photo[0].file_id if message.photo else None),
"video": ("send_video", message.video.file_id if message.video else None),
"audio": ("send_audio", message.audio.file_id if message.audio else None),
"document": ("send_document", message.document.file_id if message.document else None),
"sticker": ("send_sticker", message.sticker.file_id if message.sticker else None),
"animation": ("send_animation", message.animation.file_id if message.animation else None),
"voice": ("send_voice", message.voice.file_id if message.voice else None),
}
response = None # To store broadcast response
for key, (func, file_id) in file_types.items():
if file_id:
# Send the file with an optional caption
caption = message.caption if 'caption' in message else ""
response = Bot.broadcast(
function=func,
**{key: file_id},
caption=caption if func != "send_sticker" else None,
)
break
if not response and message.text:
response = Bot.broadcast(function="send_message", text=message.text, parse_mode="html")
elif not response and message.forward_from:
response = Bot.broadcast(
function="forward_message",
from_chat_id=message.chat.id,
message_id=message.message_id,
)
success_msg = (
"Broadcast completed successfully! โ "
if response and 'broadcast_id' in response
else "Broadcast failed! โ"
)
bot.sendMessage(chat_id=u, text=success_msg)
โ ๏ธ ๐ษชแด แด แดสแดแด ษชแด ษชา สแดแด แดสแด แดแดsแดษชษดษข แดษด สแดแดส แดสแดษดษดแดส.
๐จโ๐ป ๐สแดแดแดแดแด ๐ส: @TeleBotCreatorCodes
ยฉ๏ธ ๐สแดแด ษชแด: @TeleBotCreatorCodes
ยฉ ๐แดแดสษชษดษข แดษดแด แดแดสสษชsสษชษดษข แดแดแด แด แดษดสแดกสแดสแด แดส sแดสสษชษดษข แดสแด แดสแดแด แด แดแดแด แด ษชs sแดสษชแดแดสส ษดแดแด แดสสแดแดกแดแด . ๐ษชษขสแด แดา แดสแด แดสแดแด แด แดแดแด แดs สแดสแดษดษข แดแด แดสแด แดแดแด แด แดแดกษดแดส แดษดแด แดแดกษดแดส แดา แดสแด แดสษชs แดสแดษดษดแดส. ๐แดษชสส ษชา แดษดสแดษดแด สแดแด แด แดษดส แดสแดสสแดแด สแดษขแดสแด ษชษดษข แดแดแดสสษชษขสแด แดแดษด แดแดษดแดแดแดแด แดs.
๐11๐ฅฐ2โค1๐1