-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM python:3.9-slim-buster | ||
|
||
LABEL maintainer="Pylakey <[email protected]>" | ||
ENV AIOTDLIB_VERSION="0.8.0" | ||
ENV AIOTDLIB_VERSION="0.8.1" | ||
|
||
RUN pip install -U pip setuptools wheel | ||
RUN pip install --no-cache-dir "aiotdlib==$AIOTDLIB_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.8.0" | ||
__version__ = "0.8.1" | ||
|
||
from .client import ( | ||
Client, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# =============================================================================== # | ||
# # | ||
# This file has been generated automatically!! Do not change this manually! # | ||
# # | ||
# =============================================================================== # | ||
from __future__ import annotations | ||
|
||
from pydantic import Field | ||
|
||
from ..base_object import BaseObject | ||
|
||
|
||
class GetSuggestedFileName(BaseObject): | ||
""" | ||
Returns suggested name for saving a file in a given directory | ||
Params: | ||
file_id (:class:`int`) | ||
Identifier of the file | ||
directory (:class:`str`) | ||
Directory in which the file is supposed to be saved | ||
""" | ||
|
||
ID: str = Field("getSuggestedFileName", alias="@type") | ||
file_id: int | ||
directory: str | ||
|
||
@staticmethod | ||
def read(q: dict) -> GetSuggestedFileName: | ||
return GetSuggestedFileName.construct(**q) |