Script Wraper
Open in Telegram
Download All New Latest Theme, Plugins, Scripts & Codes Only On "Script Wrap" Stay With "Script Wrap" & Get π πPremium Script πPremium Theme πPremium Plugins πPremium Codes
Show more794
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
I'm back on the Python Bot series, in a day or two, subscribe to the YouTube channel to get notified.
Link - https://youtube.com/@CodeWithKaran
Your Name Send In Comment of this channel - @Crypto_INR_Giveaways. I'll create a poll for it..
Repost from N/a
BAN AND UNBAN USER
COMMAND -
/adminPanel
TPY - text = '<b>Welcome to bot admin Panel :</b>'
markup = InlineKeyboardMarkup()
but = InlineKeyboardButton
but_1 = but(text='Ban', callback_data='/ban_unban ban')
but_2 = but(text='Unban', callback_data='/ban_unban unban')
markup.add(but_1,but_2)
bot.sendMessage(text,reply_markup=markup)
COMMAND -: /ban_unban
TPY -: if params == 'ban':
bot.sendMessage('<b>Send user telegram id for ban him.</b>')
Bot.handleNextCommand('/ban_unban',options = 'ban_id')
if options == 'ban_id':
bot.sendMessage(message.text)
User.saveData('ban',True)
if params == 'unban':
bot.sendMessage('<b>Send user telegram id for unban him.</b>')
Bot.handleNextCommand('/ban_unban',options = 'unban_id')
if options == 'unban_id':
bot.sendMessage(message.text)
User.saveData('ban',False)
NOTE -: Paste this code in your all command at start of commands
TPY -: status = User.getData('ban')
if status == True:
bot.sendMessage('you banned by admin')
raise ReturnCommand
JOIN - @KaranCoder || @TBCCodesOfficialIf AnyOne Want To exchange crypto to INR.....
Dm - @KSCoder
Minimum - 100 Rs Crypto....
βΊοΈ Join For TBC Bots And Codes - @TBCCodesOfficial (Channel) || @TBCBotsOfficial (ChatGroup)
