Use datetime.timedelta to Represent Time Periods in Classes (#4750)

This commit is contained in:
Abdelrahman Elkheir
2025-06-29 19:09:32 +03:00
committed by GitHub
parent 22ae75c944
commit 979db096b1
69 changed files with 1694 additions and 421 deletions
+2
View File
@@ -101,3 +101,5 @@
.. |org-verify| replace:: `on behalf of the organization <https://telegram.org/verify#third-party-verification>`__
.. |time-period-input| replace:: :class:`datetime.timedelta` objects are accepted in addition to plain :obj:`int` values.
.. |time-period-int-deprecated| replace:: In a future major version this attribute will be of type :obj:`datetime.timedelta`. You can opt-in early by setting `PTB_TIMEDELTA=true` or ``PTB_TIMEDELTA=1`` as an environment variable.