Running a Telegram bot on Python 3 causes a TypeError about duplicate ‘payload’ parameters. See this revised snippet:
import tg_module
def start_bot_func():
bot_instance = tg_module.BotAPI('TOKEN_XYZ')
bot_instance.initialize_webhook(url='', certificate='cert.pem')
start_bot_func()