mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
commit
50e5e96bb1
@ -973,8 +973,8 @@ def create_chat_invite_link(token, chat_id, expire_date, member_limit):
|
||||
}
|
||||
|
||||
if expire_date is not None:
|
||||
if isinstance(payload['expire_date'], datetime):
|
||||
payload['expire_date'] = payload['expire_date'].timestamp()
|
||||
if isinstance(expire_date, datetime):
|
||||
payload['expire_date'] = expire_date.timestamp()
|
||||
else:
|
||||
payload['expire_date'] = expire_date
|
||||
if member_limit:
|
||||
@ -991,8 +991,8 @@ def edit_chat_invite_link(token, chat_id, invite_link, expire_date, member_limit
|
||||
}
|
||||
|
||||
if expire_date is not None:
|
||||
if isinstance(payload['expire_date'], datetime):
|
||||
payload['expire_date'] = payload['expire_date'].timestamp()
|
||||
if isinstance(expire_date, datetime):
|
||||
payload['expire_date'] = expire_date.timestamp()
|
||||
else:
|
||||
payload['expire_date'] = expire_date
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user