mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update default parse_mode propagation.
This commit is contained in:
parent
4d631a3069
commit
f5684aef07
80 changed files with 552 additions and 185 deletions
|
|
@ -1,8 +1,13 @@
|
|||
from typing import Any, Dict
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING, Any, Dict
|
||||
|
||||
from ..types import File
|
||||
from .base import Request, TelegramMethod
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ..client.bot import Bot
|
||||
|
||||
|
||||
class GetFile(TelegramMethod[File]):
|
||||
"""
|
||||
|
|
@ -22,7 +27,7 @@ class GetFile(TelegramMethod[File]):
|
|||
file_id: str
|
||||
"""File identifier to get info about"""
|
||||
|
||||
def build_request(self) -> Request:
|
||||
def build_request(self, bot: Bot) -> Request:
|
||||
data: Dict[str, Any] = self.dict()
|
||||
|
||||
return Request(method="getFile", data=data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue