Issues with python-telegram-bot on Python 3?

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()

hey, i had similar issu using outdated lib version. try updatng it to the latest, rough compatability may be at play here. check the docs also for any notes on payload dup errors.