бот Выдает ошибку, но на других пк работает. что делать? вот ошибка
in send_welcome
bot.register_next_step_handler(msg, process_firstname_step)
NameError: name 'process_firstname_step' is not defined. Did you mean: 'process_name_step'?
import telebot
import configure
bot = telebot.TeleBot(configure.config['token'])
user_data = {}
class User:
def __init__(self, firt_name):
self.firt_name = firt_name
self.last_name = ''
self.direction = ''
self.data = ''
self.number = ''
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
msg = bot.send_message(message.chat.id, "Введите Ваше Имя")
bot.register_next_step_handler(msg, process_firstname_step)
def process_name_step(message):
try:
user_id = message.from_user.id
user_data[user_id] = User(message.text)
msg = bot.send_message(message.chat.id, "Введите Вашу Фамилию!")
bot.register_next_step_handler(msg, process_lastname_step)
except Exception as e:
bot.reply_to(message, 'oooops')
if __name__ == '__main__':
bot.polling(non_stop=True)