import telebot
import random
from telebot import types
bot = telebot.TeleBot("token")
@bot.message_handler(commands=['start'])
def send_welcome(message):
#ketboard
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item1 = types.KeyboardButton("
Рандомное число")
item2 = types.KeyboardButton("
Как дела чтоли")
markup.add(item1, item2)
bot.send_message(message.chat.id, "Приветик
, {0.first_name}!\nя - <b>{1.first_name}</b>, созданный для теста
.".format(message.from_user, bot.get_me),
parse_mode="html", reply_markup=markup)
@bot.message_handler(content_types=["text"])
def lalala(message):
if message.chat.type == "private":
if message.text == "
Рандомное число":
bot.send_message(message.chat.id, str(random.randint(0,6)))
elif message.text == "
Как дела чтоли":
bot.send_message(message.chat.id, "Отлично,сам как?")
else:
bot.send_message(message.chat.id, "А мне пофек
")
#run
bot.polling(none_stop=True)
import random
from telebot import types
bot = telebot.TeleBot("token")
@bot.message_handler(commands=['start'])
def send_welcome(message):
#ketboard
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item1 = types.KeyboardButton("

item2 = types.KeyboardButton("

markup.add(item1, item2)
bot.send_message(message.chat.id, "Приветик


parse_mode="html", reply_markup=markup)
@bot.message_handler(content_types=["text"])
def lalala(message):
if message.chat.type == "private":
if message.text == "

bot.send_message(message.chat.id, str(random.randint(0,6)))
elif message.text == "

bot.send_message(message.chat.id, "Отлично,сам как?")
else:
bot.send_message(message.chat.id, "А мне пофек

#run
bot.polling(none_stop=True)