From be639ef4ddad89ca22a31d8f14af34b0e1dad867 Mon Sep 17 00:00:00 2001 From: Kondra007 Date: Wed, 4 Nov 2015 18:37:51 +0300 Subject: [PATCH] Added 'voice' to content_types + some small fixes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 42281d1..9cfcf84 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,8 @@ To start the bot, simply open up a terminal and enter `python echo_bot.py` to ru All types are defined in types.py. They are all completely in line with the [Telegram API's definition of the types](https://core.telegram.org/bots/api#available-types), except for the Message's `from` field, which is renamed to `from_user` (because `from` is a Python reserved token). Thus, attributes such as `message_id` can be accessed directly with `message.message_id`. Note that `message.chat` can be either an instance of `User` or `GroupChat` (see [How can I distinguish a User and a GroupChat in message.chat?](#how-can-i-distinguish-a-user-and-a-groupchat-in-messagechat)). -The Message object also has a `content_type`attribute, which defines the type of the Message. `content_type` can be one of the following strings: -'text', 'audio', 'document', 'photo', 'sticker', 'video', 'location', 'contact', 'new_chat_participant', 'left_chat_participant', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created'. +The Message object also has a `content_types`attribute, which defines the type of the Message. `content_types` can be one of the following strings: +'text', 'audio', 'document', 'photo', 'sticker', 'video', 'voice', 'location', 'contact', 'new_chat_participant', 'left_chat_participant', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created'. ### Methods