I need help with my telegram bot code Im new

Traceback (most recent call last):
File “C:\Users\playmaker\PycharmProjects\pythonProject6\TeleBotDontConnectYet.py”, line 9, in
bot = telebot(BOT_TOKEN)
^^^^^^^^^^^^^^^^^^
TypeError: ‘module’ object is not callable

how do i fix this? i already added my api token to code and when i run i get this error

Read this article:

see that is

telebot.TeleBot(BOT_TOKEN)

and not

telebot(BOT_TOKEN)

assuming that you’ar using the library python-telegram-bot, if not, you should mention in detail your problem and the library you’ar using

I will add the documentation too, if you want to check it:

https://docs.python-telegram-bot.org/en/v20.5/

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.