Очень прошу помогите, уже час ломаю голову
Кодimport telebot
import constans
bot = telebot.TeleBot(constans.token)
#upd = bot.get_updates()
#print (upd)
#last_upd = upd[-1]
#message_from_user = last_upd.message
#print(message_from_user)
print(bot.get_me())
def log(message: object, answer: object) -> object:
print("/n ------")
from datetime import datetime
print(datetime.now())
print("Сообщение от {0} {1}. (id = {2}) \n Текст = {3}".format(message.from_user.first_name, message.from_user.last_name, str(message.from_user.id), message.text))
@bot.message_handler(commands=['help'])
def handle_text(message):
answer = "Мои возможности ограничены. Sorry!"
log(message, answer)
bot.send_message(message.chat.id, answer )
@bot.message_handler(commands=['start'])
def handle_text(message):
answer = "Hello! You are welcome!"
log(message, answer)
bot.send_message(message.chat.id, answer)
@bot.message_handler(commands=['settings'])
def handle_text(message):
answer = "Тут пусто)"
log(message, answer)
bot.send_message(message.chat.id,answer )
@bot.message_handler(content_types=['text'])
def handle_text(message):
answer = "USUS"
if message.text == "a":
answer = "b"
log(message, answer)
bot.send_message(message.chat.id, answer)
elif message.text == "c":
answer = "d"
log(message, answer)
bot.send_message(message.chat.id,answer)
else:
log(message, answer)
bot.send_message(message.chat.id, answer)
bot.polling(none_stop=True, interval=0)
ОшибкаC:\Users\lucky\PycharmProjects\untitled\venv\Scripts\python.exe C:/Users/lucky/PycharmProjects/untitled/Telegram.py
File "C:/Users/lucky/PycharmProjects/untitled/Telegram.py", line 55
bot.polling(none_stop=True, interval=0)
^
SyntaxError: invalid character in identifier
Process finished with exit code 1