mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 06:25:12 +01:00
Co-authored-by: Poolitzer <github@poolitzer.eu> Co-authored-by: Kenji Tagawa <61639117+kenjitagawa@users.noreply.github.com> Co-authored-by: Kenji Tagawa <kenji@tagawa.ca> Co-authored-by: Alexandre Rodrigues Batista <40678306+xTudoS@users.noreply.github.com>
This commit is contained in:
parent
03d2359061
commit
04d86deb58
8 changed files with 27 additions and 3 deletions
|
@ -12,6 +12,7 @@ sphinx:
|
|||
# Optionally build your docs in additional formats such as PDF
|
||||
formats:
|
||||
- pdf
|
||||
- htmlzip
|
||||
|
||||
# Optionally set the version of Python and requirements required to build your docs
|
||||
python:
|
||||
|
|
|
@ -25,6 +25,7 @@ The following wonderful people contributed directly or indirectly to this projec
|
|||
- `Abshar <https://github.com/abxhr>`_
|
||||
- `Alateas <https://github.com/alateas>`_
|
||||
- `Ales Dokshanin <https://github.com/alesdokshanin>`_
|
||||
- `Alexandre <https://github.com/xTudoS>`_
|
||||
- `Alizia <https://github.com/thefunkycat>`_
|
||||
- `Ambro17 <https://github.com/Ambro17>`_
|
||||
- `Andrej Zhilenkov <https://github.com/Andrej730>`_
|
||||
|
@ -69,6 +70,7 @@ The following wonderful people contributed directly or indirectly to this projec
|
|||
- `Joscha Götzer <https://github.com/Rostgnom>`_
|
||||
- `jossalgon <https://github.com/jossalgon>`_
|
||||
- `JRoot3D <https://github.com/JRoot3D>`_
|
||||
- `kenjitagawa <https://github.com/kenjitagawa>`_
|
||||
- `kennethcheo <https://github.com/kennethcheo>`_
|
||||
- `Kirill Vasin <https://github.com/vasinkd>`_
|
||||
- `Kjwon15 <https://github.com/kjwon15>`_
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
Version 20.6
|
||||
Version 20.7
|
||||
============
|
||||
|
||||
*Released 2023-11-27*
|
||||
|
||||
This is the technical changelog for version 20.6. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`__.
|
||||
This is the technical changelog for version 20.7. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`__.
|
||||
|
||||
New Features
|
||||
------------
|
||||
|
|
|
@ -4,3 +4,4 @@ telegram.constants Module
|
|||
.. automodule:: telegram.constants
|
||||
:members:
|
||||
:show-inheritance:
|
||||
:inherited-members: Enum, EnumMeta
|
||||
|
|
|
@ -4820,7 +4820,7 @@ class Bot(TelegramObject, AsyncContextManager["Bot"]):
|
|||
`@BotFather <https://t.me/BotFather>`_.
|
||||
currency (:obj:`str`): Three-letter ISO 4217 currency code, see `more on currencies
|
||||
<https://core.telegram.org/bots/payments#supported-currencies>`_.
|
||||
prices (Sequence[:class:`telegram.LabeledPrice`)]: Price breakdown, a sequence
|
||||
prices (Sequence[:class:`telegram.LabeledPrice`]): Price breakdown, a sequence
|
||||
of components (e.g. product price, tax, discount, delivery cost, delivery tax,
|
||||
bonus, etc.).
|
||||
|
||||
|
|
|
@ -231,6 +231,10 @@ class File(TelegramObject):
|
|||
|
||||
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
|
||||
|
||||
Hint:
|
||||
If you want to immediately read the data from ``out`` after calling this method, you
|
||||
should call ``out.seek(0)`` first. See also :meth:`io.IOBase.seek`.
|
||||
|
||||
.. versionadded:: 20.0
|
||||
|
||||
Args:
|
||||
|
|
|
@ -157,6 +157,18 @@ class Application(Generic[BT, CCT, UD, CD, BD, JQ], AsyncContextManager["Applica
|
|||
|
||||
.. seealso:: :meth:`__aenter__` and :meth:`__aexit__`.
|
||||
|
||||
This class is a :class:`~typing.Generic` class and accepts six type variables:
|
||||
|
||||
1. The type of :attr:`bot`. Must be :class:`telegram.Bot` or a subclass of that class.
|
||||
2. The type of the argument ``context`` of callback functions for (error) handlers and jobs.
|
||||
Must be :class:`telegram.ext.CallbackContext` or a subclass of that class. This must be
|
||||
consistent with the following types.
|
||||
3. The type of the values of :attr:`user_data`.
|
||||
4. The type of the values of :attr:`chat_data`.
|
||||
5. The type of :attr:`bot_data`.
|
||||
6. The type of :attr:`job_queue`. Must either be :class:`telegram.ext.JobQueue` or a subclass
|
||||
of that or :obj:`None`.
|
||||
|
||||
Examples:
|
||||
:any:`Echo Bot <examples.echobot>`
|
||||
|
||||
|
|
|
@ -128,6 +128,10 @@ class ExtBot(Bot, Generic[RLARGS]):
|
|||
This can be used to pass additional information to the rate limiter, specifically to
|
||||
:paramref:`telegram.ext.BaseRateLimiter.process_request.rate_limit_args`.
|
||||
|
||||
This class is a :class:`~typing.Generic` class and accepts one type variable that specifies
|
||||
the generic type of the :attr:`rate_limiter` used by the bot. Use :obj:`None` if no rate
|
||||
limiter is used.
|
||||
|
||||
Warning:
|
||||
* The keyword argument ``rate_limit_args`` can `not` be used, if :attr:`rate_limiter`
|
||||
is :obj:`None`.
|
||||
|
|
Loading…
Reference in a new issue