bot.py
def message_handler(message):
    """If the bot state for a message/call sender is POINT

       if entered point coordinates are valid, save them, switch to the TRANSIT state,
       send the assigned answer and 'Yes, No' markup"""
    ans = coord.point_manual(message)
    markup = telebot.types.InlineKeyboardMarkup()

    if ans[-1] == '?':
        state.save_state(message, state.states['TRANSIT'])
        markup.add(telebot.types.InlineKeyboardButton('Yes', callback_data='yes'),
                   telebot.types.InlineKeyboardButton('No', callback_data='no'))

    bot.send_message(message.chat.id, ans, parse_mode='HTML', reply_markup=markup)
If the bot state for a message/call sender is POINT

       if entered point coordinates are valid, save them, switch to the TRANSIT state,
       send the assigned answer and 'Yes, No' markup
If the bot state for a message/call sender is POINT
if entered point coordinates are valid, save them, switch to the TRANSIT state,
send the assigned answer and 'Yes, No' markup
If the bot state for a message / call sender is POINT if entered point coordinates are valid save them switch to the TRANSIT state send the assigned answer and ' Yes No ' markup
def message_handler(message):
    ans = coord.point_manual(message)
    markup = telebot.types.InlineKeyboardMarkup()
    if ans[-1] == '?':
        state.save_state(message, state.states['TRANSIT'])
        markup.add(telebot.types.InlineKeyboardButton('Yes', callback_data='yes'),
                   telebot.types.InlineKeyboardButton('No', callback_data='no'))
    bot.send_message(message.chat.id, ans, parse_mode='HTML', reply_markup=markup)
def message_handler ( message ) : ans = coord . point_manual ( message ) markup = telebot . types . InlineKeyboardMarkup ( ) if ans [ - 1 ] == '?' : state . save_state ( message , state . states [ 'TRANSIT' ] ) markup . add ( telebot . types . InlineKeyboardButton ( 'Yes' , callback_data = 'yes' ) , telebot . types . InlineKeyboardButton ( 'No' , callback_data = 'no' ) ) bot . send_message ( message . chat . id , ans , parse_mode = 'HTML' , reply_markup = markup )
If the bot state for a message/call sender is POINT
if entered point coordinates are valid, save them, switch to the TRANSIT state,
send the assigned answer and 'Yes, No' markup
If the bot state for a message / call sender is POINT if entered point coordinates are valid save them switch to the TRANSIT state send the assigned answer and ' Yes No ' markup
"""If the bot state for a message/call sender is POINT

       if entered point coordinates are valid, save them, switch to the TRANSIT state,
       send the assigned answer and 'Yes, No' markup"""
message