leandrotoledo/python-telegram-bot

View on GitHub

Showing 325 of 325 total issues

File _bot.py has 7594 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python
# pylint: disable=no-self-argument, not-callable, no-member, too-many-arguments
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2024
Severity: Major
Found in telegram/_bot.py - About 3 wks to fix

    File _extbot.py has 3841 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    #!/usr/bin/env python
    # pylint: disable=too-many-arguments
    #
    # A library that provides a Python interface to the Telegram Bot API
    # Copyright (C) 2015-2024
    Severity: Major
    Found in telegram/ext/_extbot.py - About 1 wk to fix

      File _message.py has 3836 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      #!/usr/bin/env python
      # pylint: disable=too-many-instance-attributes, too-many-arguments
      #
      # A library that provides a Python interface to the Telegram Bot API
      # Copyright (C) 2015-2024
      Severity: Major
      Found in telegram/_message.py - About 1 wk to fix

        File _chat.py has 3107 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        #!/usr/bin/env python
        # pylint: disable=redefined-builtin
        #
        # A library that provides a Python interface to the Telegram Bot API
        # Copyright (C) 2015-2024
        Severity: Major
        Found in telegram/_chat.py - About 1 wk to fix

          File constants.py has 2249 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # python-telegram-bot - a Python interface to the Telegram Bot API
          # Copyright (C) 2015-2024
          # by the python-telegram-bot contributors <devs@python-telegram-bot.org>
          #
          # This program is free software: you can redistribute it and/or modify
          Severity: Major
          Found in telegram/constants.py - About 6 days to fix

            File filters.py has 2040 lines of code (exceeds 250 allowed). Consider refactoring.
            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>
            Severity: Major
            Found in telegram/ext/filters.py - About 5 days to fix

              File _user.py has 1763 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              #!/usr/bin/env python
              # pylint: disable=redefined-builtin
              #
              # A library that provides a Python interface to the Telegram Bot API
              # Copyright (C) 2015-2024
              Severity: Major
              Found in telegram/_user.py - About 4 days to fix

                File _application.py has 1451 lines of code (exceeds 250 allowed). Consider refactoring.
                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>
                Severity: Major
                Found in telegram/ext/_application.py - About 3 days to fix

                  File _applicationbuilder.py has 1093 lines of code (exceeds 250 allowed). Consider refactoring.
                  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>
                  Severity: Major
                  Found in telegram/ext/_applicationbuilder.py - About 2 days to fix

                    File conversationhandler.py has 776 lines of code (exceeds 250 allowed). Consider refactoring.
                    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>
                    Severity: Major
                    Found in telegram/ext/_handlers/conversationhandler.py - About 1 day to fix

                      File _jobqueue.py has 760 lines of code (exceeds 250 allowed). Consider refactoring.
                      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>
                      Severity: Major
                      Found in telegram/ext/_jobqueue.py - About 1 day to fix

                        File _callbackquery.py has 721 lines of code (exceeds 250 allowed). Consider refactoring.
                        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>
                        Severity: Major
                        Found in telegram/_callbackquery.py - About 1 day to fix

                          File _updater.py has 705 lines of code (exceeds 250 allowed). Consider refactoring.
                          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>
                          Severity: Major
                          Found in telegram/ext/_updater.py - About 1 day to fix

                            Function __init__ has 79 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(
                            Severity: Major
                            Found in telegram/_message.py - About 1 day to fix

                              File _chatmember.py has 527 lines of code (exceeds 250 allowed). Consider refactoring.
                              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>
                              Severity: Major
                              Found in telegram/_chatmember.py - About 1 day to fix

                                File _update.py has 507 lines of code (exceeds 250 allowed). Consider refactoring.
                                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>
                                Severity: Major
                                Found in telegram/_update.py - About 1 day to fix

                                  File inputmedia.py has 503 lines of code (exceeds 250 allowed). Consider refactoring.
                                  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>
                                  Severity: Major
                                  Found in telegram/_files/inputmedia.py - About 1 day to fix

                                    File _telegramobject.py has 483 lines of code (exceeds 250 allowed). Consider refactoring.
                                    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>
                                    Severity: Minor
                                    Found in telegram/_telegramobject.py - About 7 hrs to fix

                                      File _picklepersistence.py has 462 lines of code (exceeds 250 allowed). Consider refactoring.
                                      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>
                                      Severity: Minor
                                      Found in telegram/ext/_picklepersistence.py - About 7 hrs to fix

                                        ApplicationBuilder has 48 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class ApplicationBuilder(Generic[BT, CCT, UD, CD, BD, JQ]):
                                            """This class serves as initializer for :class:`telegram.ext.Application` via the so called
                                            `builder pattern`_. To build a :class:`telegram.ext.Application`, one first initializes an
                                            instance of this class. Arguments for the :class:`telegram.ext.Application` to build are then
                                            added by subsequently calling the methods of the builder. Finally, the
                                        Severity: Minor
                                        Found in telegram/ext/_applicationbuilder.py - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language