From 855ab19deab65a1d16077836f4d32186313c2e63 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Thu, 24 Sep 2015 09:10:33 -0300 Subject: [PATCH] Fixes regression on Audio and Document models for unicode fields #65 --- telegram/audio.py | 4 ++-- telegram/document.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram/audio.py b/telegram/audio.py index 30342b7e0..c7a669d34 100644 --- a/telegram/audio.py +++ b/telegram/audio.py @@ -52,8 +52,8 @@ class Audio(TelegramObject): self.file_id = str(file_id) self.duration = int(duration) # Optionals - self.performer = str(kwargs.get('performer', '')) - self.title = str(kwargs.get('title', '')) + self.performer = kwargs.get('performer', '') + self.title = kwargs.get('title', '') self.mime_type = str(kwargs.get('mime_type', '')) self.file_size = int(kwargs.get('file_size', 0)) diff --git a/telegram/document.py b/telegram/document.py index ff017ceae..d492774da 100644 --- a/telegram/document.py +++ b/telegram/document.py @@ -49,7 +49,7 @@ class Document(TelegramObject): self.file_id = str(file_id) # Optionals self.thumb = kwargs.get('thumb') - self.file_name = str(kwargs.get('file_name', '')) + self.file_name = kwargs.get('file_name', '') self.mime_type = str(kwargs.get('mime_type', '')) self.file_size = int(kwargs.get('file_size', 0))