pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Exception in register_next_step_handler

Open stmotw opened this issue 11 years ago • 1 comments

In init.py, lines 368-370

chat_id = message.chat.id
if chat_id in self.message_subscribers_next_step:
    self.message_subscribers_next_step.append(callback)

Last string should be self.message_subscribers_next_step[chat_id].append(callback)

stmotw avatar Aug 21 '15 14:08 stmotw

My mistake. Thx.

eternnoir avatar Aug 21 '15 15:08 eternnoir