close

[solved] ‘TeleBot’ object has no attribute ‘message_handler’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error ‘TeleBot’ object has no attribute ‘message_handler’ in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ‘TeleBot’ object has no attribute ‘message_handler’ Error Occurs?

Today I get the following error ‘TeleBot’ object has no attribute ‘message_handler’ in Python.

How To Solve ‘TeleBot’ object has no attribute ‘message_handler’ Error ?

  1. How To Solve 'TeleBot' object has no attribute 'message_handler' Error ?

    To Solve 'TeleBot' object has no attribute 'message_handler' Error I have deleted everything and download again and it helped me.

Solution 1


I did

pip3 uninstall telebot

then

pip3 uninstall PyTelegramBotAPI

and then

pip3 install PyTelegramBotAPI==2.2.3

and it works now!

PyTelegramBotAPI 3.0 have lot of changes and 3.0 API docs are not there yet. WIP. Use 2.2.3 older version instead and make sure you don’t have any other bot api like telebot

Solution 2

I have deleted everything and download again and it helped me.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment