From 012bbe13075e7a109815b45b8c7b5afd22c37648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Fri, 22 Apr 2016 15:34:21 +0200 Subject: [PATCH] update readme to bot-api-2.0 --- README.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 778da5587..6c1fc647a 100644 --- a/README.rst +++ b/README.rst @@ -108,6 +108,13 @@ getUserProfilePhotos Yes getFile Yes setWebhook Yes answerInlineQuery Yes +kickChatMember Yes +unbanChatMember Yes +answerCallbackQuery Yes +editMessageText Yes +editMessageCaption Yes +editMessageReplyMarkup Yes +answerCallbackQuery Yes ========================= ============ ------------------------- @@ -273,7 +280,8 @@ To tell the user that something is happening on bot's side:: To create `Custom Keyboards `_:: - >>> custom_keyboard = [[ telegram.Emoji.THUMBS_UP_SIGN, telegram.Emoji.THUMBS_DOWN_SIGN ]] + >>> custom_keyboard = [[ telegram.KeyboardButton(telegram.Emoji.THUMBS_UP_SIGN), + ... telegram.KeyboardButton(telegram.Emoji.THUMBS_DOWN_SIGN) ]] >>> reply_markup = telegram.ReplyKeyboardMarkup(custom_keyboard) >>> bot.sendMessage(chat_id=chat_id, text="Stay here, I'll be back.", reply_markup=reply_markup)