From 59bea7216a5df12c2bc2822fd7a17c533760ed55 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 11 Nov 2017 12:46:33 +0200 Subject: [PATCH] Oops. Change API version in docs and add API version to `aiogram.__init__` --- aiogram/__init__.py | 2 ++ aiogram/bot/api.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 3b5ec701..da99cccc 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -2,5 +2,7 @@ from .bot import Bot from .utils.versions import Version, Stage VERSION = Version(1, 0, 0, stage=Stage.DEV, build=0) +API_VERSION = Version(3, 4) __version__ = VERSION.version +__api_version__ = API_VERSION.version diff --git a/aiogram/bot/api.py b/aiogram/bot/api.py index af32b14d..13ff07e7 100644 --- a/aiogram/bot/api.py +++ b/aiogram/bot/api.py @@ -163,7 +163,7 @@ class Methods(Helper): """ Helper for Telegram API Methods listed on https://core.telegram.org/bots/api - List is updated to Bot API 3.2 + List is updated to Bot API 3.4 """ mode = HelperMode.lowerCamelCase