-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
When I try to send an Emoji using the line from the docs (more or less) I get the following:
bot.sendMessage(chat_id=MY_CHAT_ID, text=telegram.Emoji.PILE_OF_POO)
File "C:\Python34\lib\site-packages\telegram\bot.py", line 126, in decorator
result = func(self, *args, **kwargs)
File "C:\Python34\lib\site-packages\telegram\bot.py", line 158, in decorator
result = request.post(url, data)
File "C:\Python34\lib\site-packages\telegram\utils\request.py", line 88, in post
data = json.dumps(data)
File "C:\Python34\lib\json\__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "C:\Python34\lib\json\encoder.py", line 192, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Python34\lib\json\encoder.py", line 250, in iterencode
return _iterencode(o, 0)
File "C:\Python34\lib\json\encoder.py", line 173, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'\xf0\x9f\x92\xa9' is not JSON serializable
This issue might be related to issue #72.
Metadata
Metadata
Assignees
Labels
No labels