Исправить ошибку схемы EditMessageTextRequest.chat_id
class EditMessageTextRequest(BaseTgRequest):
"""Object encapsulates data for calling Telegram Bot API endpoint `editMessageText`.
See here https://core.telegram.org/bots/api#editmessagetext
"""
chat_id: int | None = Field(
default=None,
description=dedent("""\
Required if inline_message_id is not specified. Unique identifier for the target chat or
username of the target channel (in the format @channelusername).
"""),
)
В официальной документации разрешается не только int, но и строка.
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Возможно, ошибка с chat_id растиражирована по нескольким разным методам либы. Стоит проверить их все