Skip to content

API 7.5 new classes #4311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/source/telegram.at-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,22 @@ Available Types
telegram.replykeyboardmarkup
telegram.replykeyboardremove
telegram.replyparameters
telegram.revenuewithdrawalstate
telegram.revenuewithdrawalstatefailed
telegram.revenuewithdrawalstatepending
telegram.revenuewithdrawalstatesucceeded
telegram.sentwebappmessage
telegram.shareduser
telegram.startransaction
telegram.startransactions
telegram.story
telegram.switchinlinequerychosenchat
telegram.telegramobject
telegram.textquote
telegram.transactionpartner
telegram.transactionpartnerfragment
telegram.transactionpartnerother
telegram.transactionpartneruser
telegram.update
telegram.user
telegram.userchatboosts
Expand Down
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalState
======================

.. autoclass:: telegram.RevenueWithdrawalState
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatefailed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStateFailed
=============================

.. autoclass:: telegram.RevenueWithdrawalStateFailed
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatepending.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStatePending
=============================

.. autoclass:: telegram.RevenueWithdrawalStatePending
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatesucceeded.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStateSucceeded
===============================

.. autoclass:: telegram.RevenueWithdrawalStateSucceeded
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.startransaction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
StarTransaction
===============

.. autoclass:: telegram.StarTransaction
:members:
:show-inheritance:
:inherited-members: TelegramObject
8 changes: 8 additions & 0 deletions docs/source/telegram.startransactions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
StarTransactions
================

.. autoclass:: telegram.StarTransactions
:members:
:show-inheritance:
:inherited-members: TelegramObject

7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartner.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartner
==================

.. autoclass:: telegram.TransactionPartner
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartnerfragment.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerFragment
==========================

.. autoclass:: telegram.TransactionPartnerFragment
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartnerother.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerOther
=======================

.. autoclass:: telegram.TransactionPartnerOther
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartneruser.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerUser
======================

.. autoclass:: telegram.TransactionPartnerUser
:members:
:show-inheritance:
:inherited-members: TelegramObject
22 changes: 22 additions & 0 deletions telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,30 @@
"ReplyKeyboardRemove",
"ReplyParameters",
"ResidentialAddress",
"RevenueWithdrawalState",
"RevenueWithdrawalStateFailed",
"RevenueWithdrawalStatePending",
"RevenueWithdrawalStateSucceeded",
"SecureData",
"SecureValue",
"SentWebAppMessage",
"SharedUser",
"ShippingAddress",
"ShippingOption",
"ShippingQuery",
"StarTransaction",
"StarTransactions",
"Sticker",
"StickerSet",
"Story",
"SuccessfulPayment",
"SwitchInlineQueryChosenChat",
"TelegramObject",
"TextQuote",
"TransactionPartner",
"TransactionPartnerFragment",
"TransactionPartnerOther",
"TransactionPartnerUser",
"Update",
"User",
"UserChatBoosts",
Expand Down Expand Up @@ -435,6 +445,18 @@
from ._replykeyboardremove import ReplyKeyboardRemove
from ._sentwebappmessage import SentWebAppMessage
from ._shared import ChatShared, SharedUser, UsersShared
from ._stars import (
RevenueWithdrawalState,
RevenueWithdrawalStateFailed,
RevenueWithdrawalStatePending,
RevenueWithdrawalStateSucceeded,
StarTransaction,
StarTransactions,
TransactionPartner,
TransactionPartnerFragment,
TransactionPartnerOther,
TransactionPartnerUser,
)
from ._story import Story
from ._switchinlinequerychosenchat import SwitchInlineQueryChosenChat
from ._telegramobject import TelegramObject
Expand Down
6 changes: 4 additions & 2 deletions telegram/_chatfullinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class ChatFullInfo(_ChatBase):

.. versionadded:: 20.0
emoji_status_expiration_date (:class:`datetime.datetime`, optional): Expiration date of
emoji status of the chat or the other party in a private chat, in seconds.
emoji status of the chat or the other party in a private chat, as a datetime object,
if any.

|datetime_localization|

Expand Down Expand Up @@ -270,7 +271,8 @@ class ChatFullInfo(_ChatBase):

.. versionadded:: 20.0
emoji_status_expiration_date (:class:`datetime.datetime`): Optional. Expiration date of
emoji status of the chat or the other party in a private chat, in seconds.
emoji status of the chat or the other party in a private chat, as a datetime object,
if any.

|datetime_localization|

Expand Down
Loading
Loading