L0re
@L0re

Из-за чего возникает ошибка telebot?

Traceback (most recent call last):
File "E:\Me\Prog\python\bots\telegram\main.py", line 6, in
bot.polling(none_stop = True)
AttributeError: 'TeleBot' object has no attribute 'polling'
код:
import telebot, cfg, datetime, pytz, json, traceback
p_timezone = pytz.timezone(cfg.timezone)
timezone_common_name = cfg.timezone_common_name

bot = telebot.TeleBot(cfg.token)
bot.polling(none_stop = True)
  • Вопрос задан
  • 219 просмотров
Пригласить эксперта
Ответы на вопрос 1
SoreMix
@SoreMix Куратор тега Python
yellow
Не poll, а polling
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы