𝘒𝘦𝘷𝘪𝘯 x 𝘉𝘰𝘵𝘴™
Відкрити в Telegram
📣 This Channel Provides Free Bots & Codes For Telebot Creator Platform
Показати більше217
Підписники
Немає даних24 години
Немає даних7 днів
Немає даних30 день
Архів дописів
⚠️ This Code Doesn't Work Anymore
📣 Super Fast Broadcast Code with API (v2.1.0)
⚡️ Command:-
/start
➡️ TPY:-
accessToken = "Your Bot's Access Token"
token = Bot.info().token
new_user = User.getData("new_user")
# generate your access token from >> https://projectoid.site/services/telegram/bot/register/
data = {"bot_id": token.split(
":")[0], "access_token": accessToken, "user_id": message.chat.id}
if not new_user:
HTTP.post(
"https://api.projectoid.site/v1/telegram/botpanel/adduser.php", json=data)
User.saveData("new_user", True)
⚡️ Command:- /broadcast
➡️ TPY:-
admin = "Your Telegram Id"
if str(message.chat.id) == admin:
bot.replyText(u, "Kindly Enter Your Message To Broadcast")
Bot.handleNextCommand("/broad")
else:
bot.replyText(u, "You are Not a Admin")
⚡️ Command:- /broad
➡️ TPY:-
accessToken = "Your Bot's Access Token"
#Generate from projectoid.site/services/telegram/bot/register
try:
def broadcast(type, method, cap, fileid):
HTTP.post("https://api.projectoid.site/v1/telegram/botpanel/broadcast.php", headers={"content-type": "application/json"},
json={
"method": method,
"text": cap,
"access_token": accessToken,
"bot_token": Bot.info().token,
"admin": message.chat.id,
"type": type,
"file_id": fileid,
"caption": cap,
"parseMode": "html", # you can change it to Markdown
"disableWebPreview": True,
"protectContent": True # pass true if you don't allow to forward/save message
})
boarding = "<b><u>Broadcast By Admin</u></b>\n\n"
caption = boarding if not message.caption else boarding + \
" <i>Message =</i> " + message.caption
if message.photo:
broadcast("photo", "sendPhoto", caption, message.photo[-1].file_id)
elif message.text:
broadcast("text","sendMessage","<b><u>Broadcast By Admin</u></b>\n\n<i>Message</i> = " + message.text,None)
elif message.video:
broadcast("video", "sendVideo", caption, message.video.file_id)
elif message.audio:
broadcast("audio", "sendAudio", caption, message.audio.file_id)
elif message.document:
broadcast("document", "sendDocument", caption, message.document.file_id)
elif message.sticker:
broadcast("sticker", "sendSticker", None, message.sticker.file_id)
elif message.animation:
broadcast(
"animation",
"sendAnimation",
caption,
message.animation.file_id
)
elif message.voice:
broadcast("voice", "sendVoice", caption, message.voice.file_id)
elif message.video_note:
broadcast("video_note", "sendVideo", caption,message.video_note.file_id)
else:
raise ReturnCommand
except Exception as e:
bot.replyText(u, e)
⚠️ Copyright :- @KevinBots
🔥 Api By :- @Projectoid
👨💻 Code by :- @Coder_kevin
🌐 Api Docs :- doc.projectoid.site
▶️ Setup :- https://youtu.be/jr11mQe0zLw❇️ Command: /captcha
👨💻 (TPY) Code:
def getRandomInd(value):
index = libs.Random.randomInt(0, len(value)-1)
return index
response = HTTP.get("https://emojihub.yurace.pro/api/all/category/animals-and-nature").json()
k = getRandomInd(response)
e = getRandomInd(response)
v = getRandomInd(response)
i = getRandomInd(response)
n = getRandomInd(response)
c = response[k]['name']
z = response[k]['htmlCode'][0]
y = response[e]['htmlCode'][0]
x = response[v]['htmlCode'][0]
w = response[i]['htmlCode'][0]
v = response[n]['htmlCode'][0]
msg = f"""Hi <b>{message.from_user.first_name}</b>, complete the captcha below to continue! 👇
[ {z} ][ {y} ][ {x} ][ {w} ][ {v} ]
<i>What is the name of the <b>first</b> emoji?</i> 🤔"""
bot.sendMessage(msg)
Bot.handleNextCommand("/check_ans", options=c)
❇️ Command: /check_ans
👨💻 (TPY) Code:
msg = message.text.lower()
ans = options.lower()
if msg == ans:
bot.sendMessage("🤩 <b>Right Answer</b>")
#Bot.runCommand("/menu")
else:
bot.sendMessage("❌ <i>Try again, please answer in english!</i>")
⚠️ Give credit if you are posting on your channel.
© @KevinBots#dateandtime
♻️ Command = Your Command
🧑💻 Code(TPY) =
date = libs.dateandtime.now('Asia/kolkata')
bot.sendMessage(f"*🔝Data for: (Today)\n📅 DATE:*_{date[30:40]}_\n*⏳ TIME:*_ {date[10:18]}_",parse_mode="markdown")
👍🏻 Hopefully it helpsI will be offline for somedays so if you need any bot which I have posted on my channel you can get that bot from here...
⚜️ Kevin Transfer Bot
