Skip to content

Commit

Permalink
* Added missing generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
pylakey committed Jul 29, 2021
1 parent 75a3155 commit 87f66e4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# aiotdlib CHANGELOG

### 0.8.1 - Hotfix

#### Fixed

* Added missing generated file from new TDLib

### 0.8.0 - TDLib 1.7.6

#### Updated
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
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"
2 changes: 1 addition & 1 deletion aiotdlib/__init__.py
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,
Expand Down
32 changes: 32 additions & 0 deletions aiotdlib/api/functions/get_suggested_file_name.py
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)

0 comments on commit 87f66e4

Please sign in to comment.