title: How to check and encode input emojis from Facebook messenger?
body: <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>