From 469213ba9dc8bce82e92e008308e9b368971ce23 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Wed, 8 Jul 2015 23:35:08 -0300 Subject: [PATCH] Update README --- README.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 16b9b6053..7b34bacd5 100644 --- a/README.rst +++ b/README.rst @@ -92,7 +92,12 @@ To fetch images sent to your Bot:: To post a text message (you'll always need chat_id to reply users):: >>> chat_id = bot.getUpdates()[-1].message.chat_id - >>> bot.sendMessage(chat_id=chat_id, text=u"I'm sorry Dave I'm afraid I can't do that.") + >>> bot.sendMessage(chat_id=chat_id, text="I'm sorry Dave I'm afraid I can't do that.") + +To post an Emoji (special thanks to `Tim Whitlock `_):: + + >>> chat_id = bot.getUpdates()[-1].message.chat_id + >>> bot.sendMessage(chat_id=chat_id, text=telegram.Emoji.PILE_OF_POO) To post a audio file (you'll always need chat_id to reply users)::