Помощь телеграм-бот Python

DEFSOYT

Новичок
Пользователь
Июл 13, 2022
1
0
1
Сделал бота, когда запускаю се нормально
1657702133248.png


Когда же запускаю бота в телеге /start - пишет ошибку

1657702193385.png

Эта ошибка
2022-07-13 11:49:28,291 (__init__.py:3148 WorkerThread2) ERROR - TeleBot: "message_handler: Commands filter should be list of strings (commands), unknown type supplied to the 'commands' filter list. Not able to use the supplied type."

КОД:

import telebot
import datetime
import requests
import random
from telebot import types

name = " "

bot = telebot.TeleBot("")

@bot.message_handler(commands=['start', 'help'])
def get_user_info (message):
markup_inline = types.InlineKeyboardMarkup()
item_notes = types.InlineKeyboardButton(text= "Ноты", callback_data= "notes")
item_Contests = types.InlineKeyboardButton(text= "Конкурсы", callback_data= "Contests")
item_Masterclass = types.InlineKeyboardButton(text= "Мастер-класс", callback_data= "Masterclass")
item_Biography = types.InlineKeyboardButton(text= "Биография", callback_data= "Biography")
item_Motivation_to_engage = types.InlineKeyboardButton(text= "Мотивация заниматься", callback_data= "Motivation to engage")

markup_inline.add(item_notes,item_Contests,item_Masterclass,item_Biography,item_Motivation_to_engage)
@bot.message_handler(message.chat.id,"Добро пожаловать в бот платформы для музыкантов Tutti!✨",
replay_markup = markup_inline
)

@bot.message_handler(func=lambda call: True)
def answer(call):
if call.data == "notes":
mark_replay = types.InlineKeyboardMarkup(resize_keyboard = True)
item_id = types.InlineKeyboardButton("струнные,клавишные,духовые,ударные,струнно-щипковые,другое")
elif call.data == "Contests":
mark_replay = types.InlineKeyboardMarkup(resize_keyboard=True)
item_id = types.InlineKeyboardButton("Сценарий конкурсы Мы понимаем, что конкурсы очень важны для развития и продвижениямузыканта, поэтому каждую неделю мы публикуем список и информацию обактуальных конкурсах. Теперь ты будешь заранее знать о предстоящихконкурсах,сможешь выбирать и планировать свое участие в них!")



@bot . message_handler ( func = lambda m : True )
def echo_all( message ):
if message.text == ("Я создатель"):
bot.reply_to(message, "Очень приятно,но вы не Бог")
elif message.text == ("/ноты"):
bot.send_message("")
bot.register_next_step_handler(message,reg_name)

def reg_name(message):
global name
name = message.text
bot.send_message(message.from_user.id,"Очень приятно, меня зовут Tutti, я твой помошник в выборе музыки")

keyboard = types.InlineKeyboardMarkup()
key_yes = types.InlineKeyboardButton(text="", repley_markkup=keyboard)
keyboard.add(key_yes)

bot.infinity_polling()

#keyboard = types.InlineKeyboardMarkup()
#key_yes = types.InlineKeyboardButton(text= "/reg")
 

Форум IT Специалистов