import telebot
from telebot import apihelper
PROXY_IP = "96.44.183.149:55225"
TOKEN = "****************************************"
apihelper.proxy = { "https": "socks5://{}".format(PROXY_IP) }
bot = telebot.TeleBot(token=TOKEN)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Hi, I love you!")
bot.polling()
PROXY_IP = "192.119.203.124:48678"
REQUEST_KWARGS = {
'proxy_url':'socks5://{}/'.format(PROXY_IP),
}
updater = Updater(token=TOKEN, use_context=True,
request_kwargs=REQUEST_KWARGS)