Я пишу Telegram Бота, который будет выводить цветной текст, используя технологию ANSI, но нз почему не работает.. пишет [31m Hello,

import telebot
import config

bot = telebot.TeleBot(config.token)

def out_red(text):
   return ("\033[31m {}" .format(text))
def out_yellow(text):
   return ("\033[33m {}" .format(text))
def out_blue(text):
   return ("\033[34m {}" .format(text))

@bot.message_handler(commands=["start"])
def hello(message):
hello = out_red("Hello,")
other = out_blue("I'm Weather_Bot\nYou can get the weather and not only just type your city or coordinats!\nwhatever you want...\nFor morе "
                                      "information click *info*\nTo start click *Let's Go* ")
bot.send_message(message.chat.id, (hello, other))

bot.infinity_polling()

Ответы (0 шт):