Fixing and upgrading next step and reply handlers. + minor fixes

Rename telebot package to pytelegrambotapi becouse lib named telebot exists and it raising many errors

Add methods:
|     register_for_reply_by_message_id,
|     register_next_step_handler_by_chat_id,
|     clear_reply_handlers,
|     clear_reply_handlers_by_message_id
This commit is contained in:
Waffle
2018-04-12 13:45:32 +03:00
parent 373d4d37ff
commit 7957bc45a8
17 changed files with 192 additions and 155 deletions

View File

@@ -30,10 +30,10 @@
# Steps 1 to 4 will have to be implemented in a web server, using a language such as PHP, Python, C# or Java. These
# steps are not shown here. Only steps 5 to 7 are illustrated, some in pseudo-code, with this example.
import telebot
import pytelegrambotapi
import time
bot = telebot.TeleBot('TOKEN')
bot = pytelegrambotapi.TeleBot('TOKEN')
def extract_unique_code(text):
# Extracts the unique_code from the sent /start command.