1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1605 from Badiboy/master

ChatMember is now typed
This commit is contained in:
Badiboy
2022-07-05 00:01:38 +03:00
committed by GitHub
3 changed files with 23 additions and 4 deletions

View File

@@ -108,7 +108,6 @@ class AsyncTeleBot:
self.current_states = state_storage
self.middlewares = []
async def close_session(self):
@@ -117,6 +116,7 @@ class AsyncTeleBot:
Use this function if you stop polling.
"""
await asyncio_helper.session_manager.session.close()
async def get_updates(self, offset: Optional[int]=None, limit: Optional[int]=None,
timeout: Optional[int]=20, allowed_updates: Optional[List]=None, request_timeout: Optional[int]=None) -> List[types.Update]:
"""