aiogram/aiogram/__init__.py
Oleg A 598ecdb588
Telegram API 6.5 (#1111)
* docs: telegram api version bump

* feat: add KeyboardButtonRequestUser and KeyboardButtonRequestChat

* feat: added the classes UserShared, ChatShared

* feat: added the parameter use_independent_chat_permissions

* fix: permissions field is mandatory for restrictChatMember

* feat: added the field user_chat_id

* feat: replaced the fields can_send_media_messages

* docs: add comment with replacement

* Update types/__init__.py

* Added new content types

* Fixed types

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2023-02-04 02:29:40 +02:00

47 lines
1,009 B
Python

import sys
if sys.version_info < (3, 7):
raise ImportError('Your Python version {0} is not supported by aiogram, please install '
'Python 3.7+'.format('.'.join(map(str, sys.version_info[:3]))))
import asyncio
import os
from . import bot
from . import contrib
from . import dispatcher
from . import types
from . import utils
from .bot import Bot
from .dispatcher import Dispatcher
from .dispatcher import filters
from .dispatcher import middlewares
from .utils import exceptions, executor, helper, markdown as md
try:
import uvloop
except ImportError:
uvloop = None
else:
if 'DISABLE_UVLOOP' not in os.environ:
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
__all__ = (
'Bot',
'Dispatcher',
'__api_version__',
'__version__',
'bot',
'contrib',
'dispatcher',
'exceptions',
'executor',
'filters',
'helper',
'md',
'middlewares',
'types',
'utils',
)
__version__ = '2.25'
__api_version__ = '6.5'