python-telegram-bot / python-telegram-bot
Showing 1 of 2 files from the diff.
Newly tracked file
telegram/ext/updater.py changed.
Other files ignored by Codecov

@@ -363,6 +363,7 @@
Loading
363 363
        force_event_loop: bool = None,
364 364
        drop_pending_updates: bool = None,
365 365
        ip_address: str = None,
366 +
        max_connections: int = 40,
366 367
    ) -> Optional[Queue]:
367 368
        """
368 369
        Starts a small http server to listen for updates via webhook. If :attr:`cert`
@@ -411,6 +412,11 @@
Loading
411 412
                   Since version 13.6, ``tornade>=6.1`` is required, which resolves the former
412 413
                   issue.
413 414
415 +
            max_connections (:obj:`int`, optional): Passed to
416 +
                :meth:`telegram.Bot.set_webhook`.
417 +
418 +
                .. versionadded:: 13.6
419 +
414 420
        Returns:
415 421
            :obj:`Queue`: The update queue that can be filled from the main thread.
416 422
@@ -459,6 +465,7 @@
Loading
459 465
                    allowed_updates,
460 466
                    ready=webhook_ready,
461 467
                    ip_address=ip_address,
468 +
                    max_connections=max_connections,
462 469
                )
463 470
464 471
                self.logger.debug('Waiting for Dispatcher and Webhook to start')
@@ -592,6 +599,7 @@
Loading
592 599
        allowed_updates,
593 600
        ready=None,
594 601
        ip_address=None,
602 +
        max_connections: int = 40,
595 603
    ):
596 604
        self.logger.debug('Updater thread started (webhook)')
597 605
@@ -632,6 +640,7 @@
Loading
632 640
            allowed_updates=allowed_updates,
633 641
            cert=cert_file,
634 642
            ip_address=ip_address,
643 +
            max_connections=max_connections,
635 644
        )
636 645
        if cert_file is not None:
637 646
            cert_file.close()
@@ -652,6 +661,7 @@
Loading
652 661
        cert=None,
653 662
        bootstrap_interval=5,
654 663
        ip_address=None,
664 +
        max_connections: int = 40,
655 665
    ):
656 666
        retries = [0]
657 667
@@ -672,6 +682,7 @@
Loading
672 682
                allowed_updates=allowed_updates,
673 683
                ip_address=ip_address,
674 684
                drop_pending_updates=drop_pending_updates,
685 +
                max_connections=max_connections,
675 686
            )
676 687
            return False
677 688
Files Coverage
telegram 96.44%
Project Totals (133 files) 96.44%
windows-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
macos-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=undefined
macos-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=undefined
macos-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=undefined
windows-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
windows-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
windows-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
windows-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
macos-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=undefined
macos-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=undefined
macos-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=undefined
macos-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.7
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=undefined
ubuntu-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=undefined
windows-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
windows-latest-3.9
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
macos-latest-3.8
Build #911167453 -
PYTHON=undefined
OS=undefined
windows-latest-3.6
Build #911167453 -
PYTHON=undefined
OS=Windows_NT
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        # We allow small coverage decreases in the project because we don't retry
8
        # on hitting flood limits, which adds noise to the coverage
9
        target: auto
10
        threshold: 0.1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading