mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
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:
@ -2,8 +2,8 @@
|
||||
This is a detailed example using almost every command of the API
|
||||
"""
|
||||
|
||||
import telebot
|
||||
from telebot import types
|
||||
import pytelegrambotapi
|
||||
from pytelegrambotapi import types
|
||||
import time
|
||||
|
||||
TOKEN = '<token_string>'
|
||||
@ -48,7 +48,7 @@ def listener(messages):
|
||||
print str(m.chat.first_name) + " [" + str(m.chat.id) + "]: " + m.text
|
||||
|
||||
|
||||
bot = telebot.TeleBot(TOKEN)
|
||||
bot = pytelegrambotapi.TeleBot(TOKEN)
|
||||
bot.set_update_listener(listener) # register listener
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user