How To Solve This Error : Attributeerror: 'nonetype' Object Has No Attribute 'reply_text'?
I've a button , it's supposed to return the ask_wikipedia function , so I used CallbackQueryHandler but when i want to call ask_wikipedia function i recive an attribute error ! Why
Solution 1:
When replying to a text message (from a MessageHandler
) is fine to use update.message.reply_text
, but in your case the incoming message is a managed by the CallbackHandler which receives a different object.
You can reply using
update.callback_query.message.edit_text(message)
Post a Comment for "How To Solve This Error : Attributeerror: 'nonetype' Object Has No Attribute 'reply_text'?"