Bot Telegram cannot send message due to blocking?

Want to send a simple message:
import telebot
bot = telebot.TeleBot(xxx)
bot.send_message(xxx, "Hello")


But when you run the code crash error, which has this:
Error("hostname 'api.telegram.org' doesn't match either of '*.metro-set.ru', 'metro-set.ru'",),))
Although I have c configured FoxyProxy proxies. How to solve?
June 5th 19 at 22:00
2 answers
June 5th 19 at 22:02
Try vpn, or TunnelBear Windscribe
June 5th 19 at 22:04
import telebot
from telebot import apihelper
apihelper.proxy = {'https': 'https://прокси'}

and then you can send messages

Find more questions by tags PythonProxyBotsTelegram