We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ee9879 commit fe27980Copy full SHA for fe27980
1 file changed
mariusz/main.py
@@ -8,7 +8,6 @@
8
import os
9
import random
10
import re
11
-import signal
12
import sqlite3
13
import subprocess
14
import time
@@ -420,9 +419,8 @@ async def run(self) -> None:
420
419
421
async def handle_messages(self) -> None:
422
"""For each unread message, determines whether and how to react."""
423
- signal.alarm(20)
424
updates = await self.bot.get_updates(offset=self.update_id, timeout=10)
425
- signal.alarm(0)
+
426
for update in updates:
427
if update.update_id:
428
self.update_id = update.update_id + 1
0 commit comments