From 9e8b11051c75ee1bac647e29f4709a52e94e3c28 Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Thu, 8 Oct 2015 16:46:15 -0400 Subject: [PATCH] Fix NameError in Python 3 --- telebot/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index e71ac05..0d5f2f3 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -21,6 +21,7 @@ ForceReply """ import json +import six class JsonSerializable: @@ -76,7 +77,7 @@ class JsonDeserializable: else: d[x] = y - return unicode(d) + return six.text_type(d) class Update(JsonDeserializable): @classmethod