Проблема с кодом на питоне
У меня есть телеграмм бот. Этот телеграмм-бот будет собирать жалобы от студентов и отправлять начальнику офиса. У меня проблема, я не знаю, как заставить бота писать "Ваш жалобы принят" после ввода их жалобы. Код написан на питоне. Код на картинке.
import telebot
from telebot import types
import pyowm
bot = telebot.TeleBot('1713326518:AAE2KbDI0_wqFCY7PM7Gm1Pp4LMqFXFQPRA')
@bot.message_handler(commands=['start'])
def welcome(message):
markup = types.InlineKeyboardMarkup()
btn1 = types.InlineKeyboardButton(" ?? O'zbek tili", callback_data='Ozbek tili')
btn2 = types.InlineKeyboardButton(" ?? Русский язык", callback_data='Rus tili')
markup.row(btn1, btn2)
bot.send_message(message.chat.id, "??O'zingizga qulay tilni tanlang \n \n ?? Выберите удобный для себя язык.", reply_markup=markup)
@bot.callback_query_handler(func=lambda callback: True)
def dialog(callback):
if callback.data == 'Ozbek tili':
(bot.send_message(callback.message.chat.id, "Введите фамилию и имя : "))
@bot.message_handler(content_types=["text"])
def send_echo(message):
bot.send_message(callback.message.chat.id, "Введите свой вопрос : ")
elif callback.data == 'Rus tili':
bot.send_message(callback.message.chat.id, "Введите фамилию и имя : ")
@bot.message_handler(content_types=["text"])
def send_echo(message):
bot.send_message(callback.message.chat.id, "Введите свой вопрос : ")
# RUN
bot.polling(none_stop=True)