MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / close_session

Method close_session

telebot/async_telebot.py:214–219  ·  view source on GitHub ↗

Closes existing session of aiohttp. Use this function if you stop polling/webhooks.

()

Source from the content-addressed store, hash-verified

212
213 @staticmethod
214 async def close_session():
215 """
216 Closes existing session of aiohttp.
217 Use this function if you stop polling/webhooks.
218 """
219 await asyncio_helper.session_manager.session.close()
220
221 async def get_updates(self, offset: Optional[int]=None, limit: Optional[int]=None,
222 timeout: Optional[int]=20, allowed_updates: Optional[List]=None, request_timeout: Optional[int]=None) -> List[types.Update]:

Callers 3

_process_pollingMethod · 0.95
shutdownFunction · 0.80
run_appMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected