After entering the command, to text?

What I use: python 3.7, telebot.

For example, the user enters /cup, then I'm sending red, green, white. And the user needs to send, say, red. How do I make the text red. How to handle team /cup and send red, green, white, I understand.

P. S do not criticize, work with the telegram recently.
March 23rd 20 at 18:44
1 answer
March 23rd 20 at 18:46
Solution
I read this section. I need the bot replied exactly after the command /cup. And plain text it needs to handle differently.

Let me see your documentation carefully:
@bot.message_handler(commands=['cup'])
def command_start(m):
 ... # here your code

# default handler for every other text
@bot.message_handler(func=lambda message: True, content_types=['text'])
def command_default(m):
 # this is the standard reply to a normal message
 bot.send_message(m.chat.id, "I don't understand \"" + m.text + "\"\nMaybe try the help page at /help")
I found. I had bot.register_next_step_handler and the name of my team. And her call to place the block processing /cup - zelda90 commented on March 23rd 20 at 18:49

Find more questions by tags PythonBotsTelegram