From becce1f580d5d1bb1ca6c8ef84e497f420781223 Mon Sep 17 00:00:00 2001 From: _run Date: Sat, 6 Nov 2021 19:51:05 +0500 Subject: [PATCH] Update apihelper.py --- telebot/apihelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/apihelper.py b/telebot/apihelper.py index f66db8a..3ae004d 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -986,7 +986,7 @@ def create_chat_invite_link(token, chat_id, name, expire_date, member_limit, cre payload['expire_date'] = expire_date if member_limit: payload['member_limit'] = member_limit - if creates_join_request: + if creates_join_request is not None: payload['creates_join_request'] = creates_join_request if name: payload['name'] = name