Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

NameError: name 'bot' is not defined #53

@Querote

Description

@Querote

here is the code
import telebot
token ='7063597612:AAEXK5vls9PlCOn4fSG7QsNznK...d626mAY'
bot = telebot.TeleBot(token)
@bot.message_handler(commands=['start'])
def say_hi(message):
bot.send_message(message.chat.id, 'Привет')
bot.polling(none_stop=True, interval=0)
an error is coming out: NameError: name 'bot' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions