From 6bfdff8892f0a13172e0a94e7cc5fba1cf1e3393 Mon Sep 17 00:00:00 2001 From: leandrotoledo Date: Mon, 23 May 2016 17:45:01 -0300 Subject: [PATCH] Update examples to column width to 99 [ci skip] --- examples/inlinebot.py | 4 ++-- examples/inlinekeyboard_example.py | 3 +-- examples/state_machine_bot.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/inlinebot.py b/examples/inlinebot.py index a52931f31..44462b9a8 100644 --- a/examples/inlinebot.py +++ b/examples/inlinebot.py @@ -51,8 +51,8 @@ def inlinequery(bot, update): query = update.inline_query.query results = list() - results.append(InlineQueryResultArticle(id=uuid4( - ), title="Caps", + results.append(InlineQueryResultArticle(id=uuid4(), + title="Caps", input_message_content=InputTextMessageContent( query.upper()))) diff --git a/examples/inlinekeyboard_example.py b/examples/inlinekeyboard_example.py index 4b883c120..4182dcbd1 100644 --- a/examples/inlinekeyboard_example.py +++ b/examples/inlinekeyboard_example.py @@ -11,8 +11,7 @@ from telegram import Emoji, ForceReply, InlineKeyboardButton, \ from telegram.ext import Updater, CommandHandler, MessageHandler, \ CallbackQueryHandler, Filters -logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - ' - '%(message)s', +logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG) # Define the different states a chat can be in diff --git a/examples/state_machine_bot.py b/examples/state_machine_bot.py index 19b7a5fbb..02b21e1f5 100644 --- a/examples/state_machine_bot.py +++ b/examples/state_machine_bot.py @@ -8,8 +8,7 @@ import logging from telegram import Emoji, ForceReply, ReplyKeyboardMarkup, KeyboardButton from telegram.ext import Updater, CommandHandler, MessageHandler, Filters -logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - ' - '%(message)s', +logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) # Define the different states a chat can be in