mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
PEP 8 - lemme sleep Traviszzzzz #232
This commit is contained in:
parent
390184f605
commit
8b95f9cbeb
16 changed files with 4 additions and 17 deletions
|
@ -29,7 +29,8 @@ class CallbackQuery(TelegramObject):
|
|||
def __init__(self,
|
||||
id,
|
||||
from_user,
|
||||
data):
|
||||
data,
|
||||
**kwargs):
|
||||
# Required
|
||||
self.id = id
|
||||
self.from_user = from_user
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultAudio"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultAudio(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedAudio"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedAudio(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedDocument"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedDocument(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedGif"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedGif(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultMpeg4Gif"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedMpeg4Gif(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultPhoto"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedPhoto(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedSticker"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedSticker(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedVideo"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedVideo(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultCachedVoice"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultCachedVoice(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultContact"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultContact(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultDocument"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultDocument(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultLocation"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultLocation(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultVenue"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultVenue(InlineQueryResult):
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
InlineQueryResultVoice"""
|
||||
|
||||
from telegram import InlineQueryResult
|
||||
from telegram.utils.validate import validate_string
|
||||
|
||||
|
||||
class InlineQueryResultVoice(InlineQueryResult):
|
||||
|
|
|
@ -198,7 +198,7 @@ class InputFile(object):
|
|||
if file_type:
|
||||
file_content = data[file_type[0]]
|
||||
|
||||
return isinstance(file_content, file) or \
|
||||
str(file_content).startswith('http')
|
||||
return isinstance(file_content, file) or str(
|
||||
file_content).startswith('http')
|
||||
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue