mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update GiveawayWinners and PassportFile types generation configs
This commit is contained in:
parent
bd45d5fcae
commit
6943bfd4cc
3 changed files with 13 additions and 2 deletions
5
.butcher/types/GiveawayWinners/replace.yml
Normal file
5
.butcher/types/GiveawayWinners/replace.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
annotations:
|
||||
winners_selection_date:
|
||||
parsed_type:
|
||||
type: std
|
||||
name: DateTime
|
||||
5
.butcher/types/PassportFile/replace.yml
Normal file
5
.butcher/types/PassportFile/replace.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
annotations:
|
||||
file_date:
|
||||
parsed_type:
|
||||
type: std
|
||||
name: DateTime
|
||||
|
|
@ -3,6 +3,7 @@ from __future__ import annotations
|
|||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from .base import TelegramObject
|
||||
from .custom import DateTime
|
||||
|
||||
|
||||
class PassportFile(TelegramObject):
|
||||
|
|
@ -18,7 +19,7 @@ class PassportFile(TelegramObject):
|
|||
"""Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file."""
|
||||
file_size: int
|
||||
"""File size in bytes"""
|
||||
file_date: int
|
||||
file_date: DateTime
|
||||
"""Unix time when the file was uploaded"""
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -31,7 +32,7 @@ class PassportFile(TelegramObject):
|
|||
file_id: str,
|
||||
file_unique_id: str,
|
||||
file_size: int,
|
||||
file_date: int,
|
||||
file_date: DateTime,
|
||||
**__pydantic_kwargs: Any,
|
||||
) -> None:
|
||||
# DO NOT EDIT MANUALLY!!!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue