mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Bot API 7.9 (#1560)
* Added full support of Bot API 7.9 * Added changelog * Try to fix towncrier * Fixed towncrier check
This commit is contained in:
parent
1c323ecc97
commit
c3a08664d3
48 changed files with 817 additions and 114 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
|
|
@ -35,8 +36,11 @@ def get_package_version() -> str:
|
|||
|
||||
|
||||
def get_telegram_api_version() -> str:
|
||||
path = Path.cwd() / ".butcher" / "schema" / "schema.json"
|
||||
schema = json.loads(path.read_text())
|
||||
version = schema["api"]["version"]
|
||||
path = Path.cwd() / ".apiversion"
|
||||
version = path.read_text().strip()
|
||||
path.write_text(version + "\n")
|
||||
return version
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue