Dev 3.x api 4.8 (#317)

* AIOG-T-20 Bot API 4.8

* AIOG-T-20 Update aliases

* AIOG-T-20 Add parse mode passing in sendPoll method

* AIOG-T-20 Small changes in docs

* AIOG-T-20 Revert overriding remove keyboard default value and add tests

* AIOG-T-20 Bot API 4.8
This commit is contained in:
Alex Root Junior 2020-05-02 23:01:32 +03:00 committed by GitHub
parent 15bcc0ba9f
commit 6be0b36305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
104 changed files with 312 additions and 175 deletions

18
build.py Normal file
View file

@ -0,0 +1,18 @@
from pathlib import Path
from typing import Any, Dict
BUILD_PATH: Path = Path(__file__).parent
META_PATH: Path = BUILD_PATH / "aiogram" / "_meta.py"
def write_metadata(setup_kwargs: Dict[str, Any]) -> None:
version = setup_kwargs["version"]
description = setup_kwargs["description"]
content = [f"VERSION = {version!r}", f"DESCRIPTION = {description!r}"]
META_PATH.write_text("\n".join(content + [""]))
def build(setup_kwargs: Dict[str, Any]):
write_metadata(setup_kwargs)