How to pull the user's response telegrams bot and add it to a variable of type string?

Need to write a bot-questionnaire in telegrams. When writing the command /go bot sends a message with a question and appears KeyBoardMarkup. The text that will be written to the variable depends on the pressed button.
Main.py
import const
import telebot
import markups
from telebot import types

arr_answers = []

bot = telebot.TeleBot(const.token)

@bot.message_handler(commands=['start'])
def start_handler(message):
 bot.send_message(message.chat.id, "hi, I'm just a bot")

@bot.message_handler(commands=['go'])
def start_answer(message):
 chat_id = message.chat.id
 bot.send_message(message.chat.id, 'In which area of search for kV?', reply_markup=markups.source_markup)


markups.py
from telebot import types
source_markup = types.ReplyKeyboardMarkup(row_width=1)
source_markup_butt1 = types.Keyboardbutton to(text = "Golosiyivskiy")
source_markup_butt2 = types.Keyboardbutton to(text = "district Pasichna, luxurious")
source_markup_butt3 = types.Keyboardbutton to(text = "Desnyanskiy")
source_markup_butt4 = types.Keyboardbutton to(text = "Dneprovskiy")
source_markup_butt5 = types.Keyboardbutton to(text = "Obolonsky")
source_markup_butt6 = types.Keyboardbutton to(text = "Pechersky")
source_markup_butt7 = types.Keyboardbutton to(text = "dear visitors")
source_markup_butt8 = types.Keyboardbutton to(text = "Svyatoshinskiy")
source_markup_butt9 = types.Keyboardbutton to(text = "Salam anski")
source_markup_butt10 = types.Keyboardbutton to(text = "Shevchenko")
source_markup.add(source_markup_butt1, source_markup_butt2, source_markup_butt3, source_markup_butt4, source_markup_butt5, source_markup_butt6,source_markup_butt7,source_markup_butt8,source_markup_butt9,source_markup_butt10)
March 19th 20 at 09:05
2 answers
March 19th 20 at 09:07
Solution
Add a handler for incoming text messages:

@bot.message_handler(content_types=['text'])
def i_read_your_message (message): #the function name doesn't matter
 if message.text == "Golosiyivskiy":
#do_something
 elif message.text == "district Pasichna, luxurious":
 #do_something_else


You can make the keyboard in the form InlineKeyboard (that is not displayed instead of the native keyboard, and directly under the message in the chat window). There the return is somewhat different. If it is necessary - I will write an example.

There is also the option to register into the text, and pressing the = input= is just text that is written on the button via the method
.register_next_step_handler ("message to which respond", "a function that processes the response").

But I have a "won't start". The question asked here, but no response yet.
March 19th 20 at 09:09
Either add a conditional statement that either do inline buttons with kavakami.

Find more questions by tags TelegramBotsPython