-
Notifications
You must be signed in to change notification settings - Fork 1
Dev Notes
Denni Bevilacqua edited this page Sep 15, 2018
·
1 revision
Note that during development, in order to test webhooks locally the following modifications were made to Telegram classes:
- In file
YOUR_PYTHON_FOLDER/site-packages/telegram/user.py
, around line 50, in init method, is_bot parameter is passed True by default, shoul like like this:
def __init__(self,
id,
first_name,
is_bot=True,
last_name=None,
username=None,
language_code=None,
bot=None,
**kwargs):
- Same thing for file
YOUR_PYTHON_FOLDER/site-packages/telegram/chat.py
around line 84, in init method, type parameter is passed True by default, shoul like like this:
def __init__(self,
id,
type=True,
title=None,
username=None,
first_name=None,
last_name=None,
all_members_are_administrators=None,
bot=None,
photo=None,
description=None,
invite_link=None,
pinned_message=None,
sticker_set_name=None,
can_set_sticker_set=None,
**kwargs):