Telegram bot project

My code is showing this error:

‘<telegram.ext.callbackcontext.CallbackContext object at 0x000001E30C324970>’ caused ‘‘CallbackContext’ object has no attribute ‘message’’ error

i wrote the same code as shown in video

this is my code which i made

@wick007 Hey Ayush,
The signature of callback function has changed now:
https://python-telegram-bot.readthedocs.io/en/stable/telegram.ext.commandhandler.html
The first parameter of callback function is the telegram.Update object, while the second parameter is the CallbackContext object. The bot is available as the property of the context object.

Modify all your callback functions like this:

def start(update, context):
    print(update)
    author = update.message.from_user.first_name
    reply = "Hi! {}".format(author)
    context.bot.send_message(chat_id=update.message.chat_id, text=reply)

def _help(update, context):
    help_text = "I will do your help!"
    context.bot.send_message(chat_id=update.message.chat_id, text=help_text)

def echo_text(update, context):
    reply = update.message.text
    context.bot.send_message(chat_id=update.message.chat_id, text=reply)

def echo_sticker(update, context):
    context.bot.send_sticker(chat_id=update.message.chat_id, sticker=update.message.sticker.file_id)

def error(update, context):
    logger.error("Update '%s' caused '%s' error", context, context.error)

It should work now.

thank you so much sir it worked but now i am not able to unserstand the working of context object and how it replaces the update parameter in every function