From 58356c8d7dac1d7a102ed4216e0b2bb20ed1e0d3 Mon Sep 17 00:00:00 2001 From: Maksim Kulis <37274042+maksimkulis@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:57:12 +0300 Subject: [PATCH] Fix KeyboardButtonRequestChat request_title typing --- telebot/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 043473aee..7efc260cf 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -2655,7 +2655,7 @@ def __init__(self, request_id: int, chat_is_channel: bool, chat_is_forum: Option chat_has_username: Optional[bool]=None, chat_is_created: Optional[bool]=None, user_administrator_rights: Optional[ChatAdministratorRights]=None, bot_administrator_rights: Optional[ChatAdministratorRights]=None, bot_is_member: Optional[bool]=None, - request_title: Optional[str]=None, request_photo: Optional[bool]=None, request_username: Optional[bool]=None): + request_title: Optional[bool]=None, request_photo: Optional[bool]=None, request_username: Optional[bool]=None): self.request_id: int = request_id self.chat_is_channel: bool = chat_is_channel self.chat_is_forum: Optional[bool] = chat_is_forum @@ -2664,7 +2664,7 @@ def __init__(self, request_id: int, chat_is_channel: bool, chat_is_forum: Option self.user_administrator_rights: Optional[ChatAdministratorRights] = user_administrator_rights self.bot_administrator_rights: Optional[ChatAdministratorRights] = bot_administrator_rights self.bot_is_member: Optional[bool] = bot_is_member - self.request_title: Optional[str] = request_title + self.request_title: Optional[bool] = request_title self.request_photo: Optional[bool] = request_photo self.request_username: Optional[bool] = request_username