diff options
author | Rahiel Kasim <rahielkasim@gmail.com> | 2017-11-27 13:34:20 +0100 |
---|---|---|
committer | Rahiel Kasim <rahielkasim@gmail.com> | 2017-11-27 13:34:20 +0100 |
commit | c58cdbaf2cfcc1f9d76111a34fa056c5fd5bd96b (patch) | |
tree | 101ab15f7275d323427462f64db7c89584168176 | |
parent | fb1723b61b79ae800d86dd0a4cd5fcc3b982ba5a (diff) |
-rw-r--r-- | main.py | 3 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -18,6 +18,7 @@ import signal from time import time import aioredis +import ujson as json import uvloop from aiotg import Bot, Chat from bismillahbot import Quran, make_index @@ -25,7 +26,7 @@ from bismillahbot import Quran, make_index from secret import token -bot = Bot(api_token=token) +bot = Bot(api_token=token, json_serialize=json.dumps, json_deserialize=json.loads) quran_index = make_index() redis = None redis_namespace = "aqb:" diff --git a/requirements.txt b/requirements.txt index f70474a..b2b22b4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ aioredis aiotg hiredis +ujson uvloop |