From 4b53ed1c65d2b8f5951f0f7e3cde0fc27391312c Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Tue, 20 Jun 2017 22:41:02 +0200 Subject: [PATCH] Fix videonote import --- telegram/__init__.py | 2 +- telegram/message.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram/__init__.py b/telegram/__init__.py index 10c90cc7a..4f93b8660 100644 --- a/telegram/__init__.py +++ b/telegram/__init__.py @@ -31,6 +31,7 @@ from .files.video import Video from .files.contact import Contact from .files.location import Location from .files.venue import Venue +from .files.videonote import VideoNote from .chataction import ChatAction from .userprofilephotos import UserProfilePhotos from .keyboardbutton import KeyboardButton @@ -88,7 +89,6 @@ from .payment.precheckoutquery import PreCheckoutQuery from .payment.shippingquery import ShippingQuery from .webhookinfo import WebhookInfo from .games.gamehighscore import GameHighScore -from .files.videonote import VideoNote from .update import Update from .bot import Bot from .constants import (MAX_MESSAGE_LENGTH, MAX_CAPTION_LENGTH, SUPPORTED_WEBHOOK_PORTS, diff --git a/telegram/message.py b/telegram/message.py index 73273e39b..c9cb8643e 100644 --- a/telegram/message.py +++ b/telegram/message.py @@ -23,10 +23,10 @@ from datetime import datetime from time import mktime from telegram import (Audio, Contact, Document, Chat, Location, PhotoSize, Sticker, TelegramObject, - User, Video, Voice, Venue, MessageEntity, Game, Invoice, SuccessfulPayment) + User, Video, Voice, Venue, MessageEntity, Game, Invoice, SuccessfulPayment, + VideoNote) from telegram.utils.deprecate import warn_deprecate_obj from telegram.utils.helpers import escape_html, escape_markdown -from telegram.videonote import VideoNote class Message(TelegramObject):