telegram/_reply.py
File _reply.py
has 379 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2024
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(
self,
origin: MessageOrigin,
chat: Optional[Chat] = None,
message_id: Optional[int] = None,
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function de_json
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def de_json(cls, data: Optional[JSONDict], bot: "Bot") -> Optional["ExternalReplyInfo"]:
"""See :obj:`telegram.TelegramObject.de_json`."""
data = cls._parse_data(data)
if data is None:
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(