mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 20:23:32 +00:00
Fuck windows.
This commit is contained in:
parent
bff535ddab
commit
9bd66a825d
1 changed files with 2 additions and 5 deletions
|
|
@ -1,14 +1,13 @@
|
|||
import asyncio
|
||||
import signal
|
||||
|
||||
import aiohttp
|
||||
|
||||
from aiogram.utils.payload import generate_payload
|
||||
from . import api
|
||||
from .api import ApiMethods
|
||||
from .types.chat import Chat
|
||||
from .types.update import Update
|
||||
from .types.user import User
|
||||
from .utils.payload import generate_payload
|
||||
|
||||
|
||||
class AIOGramBot:
|
||||
|
|
@ -29,9 +28,7 @@ class AIOGramBot:
|
|||
connector=aiohttp.TCPConnector(limit=connections_limit),
|
||||
loop=self.loop)
|
||||
|
||||
self.loop.add_signal_handler(signal.SIGINT, self._on_exit)
|
||||
|
||||
def _on_exit(self):
|
||||
def __del__(self):
|
||||
self.session.close()
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue