import telebot
from telebot import types
bot = telebot.TeleBot ( "1264200548:AAHqDLvRLIBhzHQ7h4UZPedbPUP9FqJ-oBQ" )
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item1 = types.KeyboardButton("Русский 🇷🇺")
item2 = types.KeyboardButton("Uzbeck🇺🇿")
item3 = types.KeyboardButton("English🇬🇧")
markup.add(item1, item2, item3)
bot.send_message(
message.chat.id, "Выберите язык. Tilni tanlang. Choose language ".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 == "Uzbeck🇺🇿":
bot.send_message(
message.chat.id, "Salom, {0.first_name}!\nMen - <b>{1.first_name}</b>, bu botimda siz men qilgan ishlarimni sizlarga havola etaman ".format(message.from_user, bot.get_me()),
parse_mode='html')
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
item4 = types.KeyboardButton("Uzuklar💍")
item5 = types.KeyboardButton("Brasletlar")
item6 = types.KeyboardButton("Kulonlar")
item7 = types.KeyboardButton("Aloqa📞")
item8 = types.KeyboardButton("Location📍")
markup.add(item4, item5, item6, item7, item8)
bot.send_message(
message.chat.id, "Nimani biz sizga havola etishimizni hohlaysiz😊" .format(message.from_user, bot.get_me()),parse_mode='html', reply_markup=markup)
bot.send_sticker(
message.chat.id, "CAACAgIAAxkBAAEBB8RfCbCxA4Oj5yRArLxQsGm9yYQC9wAC2QADVp29CtGSZtLSYweoGgQ")
@bot.message_handler(content_types=['text'])
def uzcbek(message):
if message.chat.type == 'private':
if message.text == "Uzuklar💍":
photo = open('/static/uzuk.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/uzuk2.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
elif message.text == "Brasletlar":
photo = open('/static/braslet.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/braslet2.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
elif message.text == "Kulonlar":
photo = open('/static/kulon.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/kulon2.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/kulon3.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/kulon4.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
photo = open('/static/kulon5.jpg', 'rb')
bot.send_photo(
message.chat.id, photo)
elif message.text == "Aloqa📞":
bot.send_message(
message.chat.id, "Bizning telefon raqamlarimiz +998 94 6412923 📞")
elif message.text == "Location📍":
bot.send_location(
message.chat.id, '41.339941', '69.360338')
bot.send_message(
message.chat.id, "Biz shu erda joylashamiz📍")
bot.polling(none_stop=True)