Skip to content Skip to sidebar Skip to footer

Attributeerror: 'callbackcontext' ('update') Object Has No Attribute 'message'

I have a problem after transfer my tg-bot to new server. Absolutely no idea why I have error. It seems like I lost some python packets to install. In old server with identical para

Solution 1:

The handler signature is not correct:

def start(update, context):
   context.bot.sendMessage(chat_id=update.message.chat_id, 'Text One')

updater.dispatcher.add_handler(CommandHandler('start', start))

Post a Comment for "Attributeerror: 'callbackcontext' ('update') Object Has No Attribute 'message'"