Skip to content

Commit

Permalink
improve type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Oct 12, 2024
1 parent af6910d commit 2c2ff9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tgram/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
api_url: str = API_URL,
allowed_updates: List[str] = [],
link_preview_options: tgram.types.LinkPreviewOptions = None,
parse_mode: Literal["Markdown", "MarkdownV2", "HTML"] = None,
parse_mode: tgram.types.ParseMode = None,
protect_content: bool = None,
workers: int = None,
retry_after: Union[int, bool] = None,
Expand Down
2 changes: 1 addition & 1 deletion tgram/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"TransactionPartnerTelegramAds",
]

ParseMode = _Literal["Markdown", "MarkdownV2", "HTML"]
ParseMode = _Literal["Markdown", "MarkdownV2", "HTML", "Disable"]
ChatType = _Literal["private", "group", "supergroup", "channel"]
ChatMemberStatus = _Literal[
"creator", "administrator", "member", "restricted", "left", "kicked"
Expand Down

0 comments on commit 2c2ff9e

Please sign in to comment.