Update GiveawayWinners and PassportFile types generation configs

This commit is contained in:
JRoot Junior 2023-12-31 00:15:54 +02:00
parent bd45d5fcae
commit 6943bfd4cc
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
3 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,5 @@
annotations:
winners_selection_date:
parsed_type:
type: std
name: DateTime

View file

@ -0,0 +1,5 @@
annotations:
file_date:
parsed_type:
type: std
name: DateTime

View file

@ -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!!!