add proxy

This commit is contained in:
Pavel Kuleshov 2019-12-17 19:30:05 +08:00
parent b60eb29035
commit d58e0f274f

View File

@ -6,10 +6,15 @@ from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton
#import logging
SHOW_BTN = False
PROXY = False
#logger = telebot.logger
#telebot.logger.setLevel(logging.DEBUG)
if PROXY:
from telebot import apihelper
apihelper.proxy = {'https': 'socks5h://user:pass@ip'}
BOT_TOKEN=''
DESTINATION=sys.argv[1]
SUBJECT=sys.argv[2]