Qr Bot.zip
3.2 KB
❤3💯1
📌 𝙋𝙮𝙩𝙝𝙤𝙣 𝘾𝙤𝙡𝙤𝙧𝙛𝙪𝙡 𝙐𝙄 🔥
☁️ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙: "/start"
🐍 𝙇𝙖𝙣𝙜𝙪𝙖𝙜𝙚: 𝙋𝙮𝙩𝙝𝙤𝙣
👨💻 𝘾𝙤𝙙𝙚:
☁️ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙: "/start"
🐍 𝙇𝙖𝙣𝙜𝙪𝙖𝙜𝙚: 𝙋𝙮𝙩𝙝𝙤𝙣
👨💻 𝘾𝙤𝙙𝙚:
import telebot
import json
TOKEN = 'BOT_TOKEN_XYRON'
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start'])
def send_keyboard(message):
config = {
"text": "WELCOME TO XYRON BOTZ",
"parse_mode": "Markdown",
"reply_markup": {
"keyboard": [
[
{ "text": "SIMPLE" },
{ "text": "BLUE", "style": "primary" }
],
[
{ "text": "GREEN", "style": "success" },
{ "text": "RED", "style": "danger" }
]
],
"resize_keyboard": True
}
}
bot.send_message(
chat_id=message.chat.id,
text=config["text"],
parse_mode=config["parse_mode"],
reply_markup=json.dumps(config["reply_markup"])
)
print("made with xyron")
bot.infinity_polling()
🔥2