How to check and encode input emojis from Facebook messenger?
<p>I'm building a Facebook messenger bot in Python. And everything works fine. But if I send <code>emojis</code> as text from Facebook chat to API, then it goes wrong. 
This is an example when I send <code>emojis</code> from Facebook.</p>

<pre><code>{'message': {'mid': 'mid.1475846223244:e7eea53884', 'seq': 10863, 'text': 'í ½í±í ¼í¿½'},
</code></pre>

<p>So the <code>received_message = message['message']['text']</code>. 
What I want is whenever I send a (emoji) <code>non text message</code> from Facebook, I can scan and encode it before I send it to my API. I have read documents before asking this question but most of them are given <code>emojis</code> from user and not all a scanner and encode any <code>emojis</code> (if I miss something, please correct me because i'm a newbie). Tell me if I need to update my question.</p>

<p>You may use a mapping between unicode code-points and ASCII representation. See this kind of table here: <a href="http://lolhug.com/facebook-emoticons/" rel="nofollow">http://lolhug.com/facebook-emoticons/</a></p>

<p>The official Emoticons table is here: <a href="http://unicode-table.com/en/blocks/emoticons/" rel="nofollow">http://unicode-table.com/en/blocks/emoticons/</a></p>

<p>The library <a href="https://pypi.python.org/pypi/emoji" rel="nofollow">Emoji</a> can help you to convert your Emojis.</p>

python facebook encoding emoji