mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update date type in RevenueWithdrawalStateSucceeded
This commit is contained in:
parent
e48088f649
commit
98c789f272
2 changed files with 8 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
|||
annotations:
|
||||
date:
|
||||
parsed_type:
|
||||
type: std
|
||||
name: DateTime
|
||||
|
|
@ -3,6 +3,7 @@ from __future__ import annotations
|
|||
from typing import TYPE_CHECKING, Any, Literal
|
||||
|
||||
from ..enums import RevenueWithdrawalStateType
|
||||
from .custom import DateTime
|
||||
from .revenue_withdrawal_state import RevenueWithdrawalState
|
||||
|
||||
|
||||
|
|
@ -15,7 +16,7 @@ class RevenueWithdrawalStateSucceeded(RevenueWithdrawalState):
|
|||
|
||||
type: Literal[RevenueWithdrawalStateType.SUCCEEDED] = RevenueWithdrawalStateType.SUCCEEDED
|
||||
"""Type of the state, always 'succeeded'"""
|
||||
date: int
|
||||
date: DateTime
|
||||
"""Date the withdrawal was completed in Unix time"""
|
||||
url: str
|
||||
"""An HTTPS URL that can be used to see transaction details"""
|
||||
|
|
@ -30,7 +31,7 @@ class RevenueWithdrawalStateSucceeded(RevenueWithdrawalState):
|
|||
type: Literal[
|
||||
RevenueWithdrawalStateType.SUCCEEDED
|
||||
] = RevenueWithdrawalStateType.SUCCEEDED,
|
||||
date: int,
|
||||
date: DateTime,
|
||||
url: str,
|
||||
**__pydantic_kwargs: Any,
|
||||
) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue