π˜’π˜¦π˜·π˜ͺ𝘯 x π˜‰π˜°π˜΅π˜΄β„’
309 subscribers
2 photos
7 links
Download Telegram
πŸ˜Άβ€πŸŒ«οΈ Want This Emoji Captcha Code?
πŸ‘17🀩2πŸ‘Œ2
❇️ 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
πŸ‘8πŸ‘Œ4
⚠️ 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
1πŸ‘5πŸ‘Œ3❀2πŸ€”2😒1
Hello Everyone! πŸ‘‹πŸ˜‰
πŸ‘10πŸ‘5
This media is not supported in your browser
VIEW IN TELEGRAM
❀3πŸ‘2πŸ₯°2
πŸ’» Do you want something?
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘10πŸ₯°1πŸ‘¨β€πŸ’»1
🚫 Code to Restrict User In Group Until 100 Members Are Added


πŸ“Œ Command: *

def check():
if not message:
return
if message.chat.type == "private":
return

user = bot.getChatMember(chat_id=message.chat.id,user_id=message.from_user.id)

if user.status == "administrator" or user.status == "creator":
return

member_list = Bot.getData(str(message.chat.id)) or []
members = libs.Resources.anotherRes(str(message.chat.id), user=message.from_user.id)

if not message.new_chat_member:
if members.value() < 100:
bot.restrictChatMember(chat_id=message.chat.id,user_id=message.from_user.id,can_send_messages=False,can_invite_users=True)
bot.sendMessage(chat_id=message.chat.id,text=f"🚫 Message Restricted\nπŸ‘‹ Hello, <b>{message.from_user.first_name}</b>!\n\nTo send messages in this group, please add at least 100 of your contacts.\nOnce you’ve added enough members, you’ll be able to send messages freely.\n\nThank you for helping us grow the community!",
parse_mode="HTML")
return

if message.new_chat_member:
if message.new_chat_member.is_bot or message.new_chat_member.id == message.from_user.id:
return

if message.new_chat_member.id not in member_list:
member_list.append(message.new_chat_member.id)
Bot.saveData(str(message.chat.id),member_list)
members.add(1)

if members.value() == 100:
bot.restrictChatMember(chat_id=message.chat.id,user_id=message.from_user.id,can_send_messages=True)
bot.sendMessage(chat_id=message.chat.id,text=f"βœ… Permission Granted\nπŸ‘ Dear <b>{message.from_user.first_name}</b>,you can now send messages in the group!",parse_mode="HTML")
check()


πŸ’» Coded by @Coder_Kevin
Β© Posted by @KevinBots

#COPY_WITH_CREDITS
Please open Telegram to view this post
VIEW IN TELEGRAM
6❀5πŸ‘5πŸ‘Œ3πŸ”₯1
π˜’π˜¦π˜·π˜ͺ𝘯 x π˜‰π˜°π˜΅π˜΄β„’ pinned «🚫 Code to Restrict User In Group Until 100 Members Are Added πŸ“Œ Command: * def check(): if not message: return if message.chat.type == "private": return user = bot.getChatMember(chat_id=message.chat.id,user_id=message.from_user.id)…»
🌩 Boost Channel Task Code

πŸ’‘ Command :- ⚑ Boost (optional)

username = 'kevinbots' # enter your channel username without @
button = InlineKeyboardMarkup()
button.add(InlineKeyboardButton(text='⚑ Boost',url=f'https://t.me/boost/{username}'))

if message.chat.type != 'private':
raise ReturnCommand

User.saveData('boost', False)
bot.sendMessage(chat_id=u,text='⚑ <b>Boost this channel to help it unlock additional features.\n\nπŸ’° Reward:</b> <i>$0.5</i>',parse_mode='html',reply_markup=button)


πŸ’‘ Command :- /handler_chat_boost (required)

channel = 'kevinbots' # enter your channel username without @
if message and message['chat']['username'].lower() == channel.lower():
userid = message['boost']['source']['user']['id']
balance = libs.Resources.anotherRes('balance',user=userid)
boost = User.getData('boost',user=userid)
if boost == None:
raise ReturnCommand
if boost == False:
if User.getData('boosted',user=userid) != True:
User.saveData('boosted',data=True,user=userid)
User.saveData('boost',data=True,user=userid)
balance.add(0.5)
bot.sendMessage(chat_id=userid,text='πŸ’° <b>Congratulations, $0.5 Added To Your Balance.</b>',parse_mode='html')
else:
bot.sendMessage(chat_id=userid,text='πŸ‘ <b>You have already helped boost our channel.</b>',parse_mode='html')


πŸ—£οΈ Code by: @Coder_Kevin
πŸ”– Posted by: @KevinBots
Please open Telegram to view this post
VIEW IN TELEGRAM
318πŸ‘76❀3
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ‘3🫑2❀1