ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Хелп ми плиз (https://forum.antichat.xyz/showthread.php?t=1519991)

berserkdzn 06.09.2024 22:44

Написал код для теста , выходит ошибка «telebot not attribute polling”

Что то не так с кодом? Вроде телебот обновил.

Python:





Код:




import telebot

from telebot import types

import requests

bot = telebot.TeleBot('')

@bot.message_handler(commands=['start'])

def start(message):

bot.send_message(message.from_user.id, "Приветствую @{message.from_user.username}!🔥")

bot.infinity.polling()

Макаров 07.09.2024 08:47

bot.infinity_polling()

berserkdzn 07.09.2024 17:28

Не понял ответ???

Я уже починил

Макаров 07.09.2024 19:13

bot.infinity.polling() - у тебя

bot.infinity_polling() - я ответил

Решение проблемы заключалось в этом?


Время: 12:39