mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Adds kwargs for InlineQueryResult objects #232
This commit is contained in:
parent
15cc410c10
commit
79228b0655
20 changed files with 39 additions and 20 deletions
|
@ -45,6 +45,7 @@ from .emoji import Emoji
|
|||
from .parsemode import ParseMode
|
||||
from .message import Message
|
||||
from .messageentity import MessageEntity
|
||||
from .inputmessagecontent import InputMessageContent
|
||||
from .callbackquery import CallbackQuery
|
||||
from .choseninlineresult import ChosenInlineResult
|
||||
from .inlinekeyboardbutton import InlineKeyboardButton
|
||||
|
@ -70,7 +71,6 @@ from .inlinequeryresultphoto import InlineQueryResultPhoto
|
|||
from .inlinequeryresultvenue import InlineQueryResultVenue
|
||||
from .inlinequeryresultvideo import InlineQueryResultVideo
|
||||
from .inlinequeryresultvoice import InlineQueryResultVoice
|
||||
from .inputmessagecontent import InputMessageContent
|
||||
from .inputtextmessagecontent import InputTextMessageContent
|
||||
from .inputlocationmessagecontent import InputLocationMessageContent
|
||||
from .inputvenuemessagecontent import InputVenueMessageContent
|
||||
|
|
|
@ -63,7 +63,8 @@ class InlineQueryResultArticle(InlineQueryResult):
|
|||
description=None,
|
||||
thumb_url=None,
|
||||
thumb_width=None,
|
||||
thumb_height=None):
|
||||
thumb_height=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultArticle, self).__init__('article', id)
|
||||
|
|
|
@ -32,7 +32,8 @@ class InlineQueryResultAudio(InlineQueryResult):
|
|||
performer=None,
|
||||
audio_duration=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultAudio, self).__init__('audio', id)
|
||||
|
|
|
@ -29,7 +29,8 @@ class InlineQueryResultCachedAudio(InlineQueryResult):
|
|||
id,
|
||||
audio_file_id,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedAudio, self).__init__('audio', id)
|
||||
self.audio_file_id = audio_file_id
|
||||
|
|
|
@ -32,7 +32,8 @@ class InlineQueryResultCachedDocument(InlineQueryResult):
|
|||
description=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedDocument, self).__init__('document', id)
|
||||
self.title = title
|
||||
|
|
|
@ -31,7 +31,8 @@ class InlineQueryResultCachedGif(InlineQueryResult):
|
|||
title=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedGif, self).__init__('gif', id)
|
||||
self.gif_file_id = gif_file_id
|
||||
|
|
|
@ -31,7 +31,8 @@ class InlineQueryResultCachedMpeg4Gif(InlineQueryResult):
|
|||
title=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedMpeg4Gif, self).__init__('mpeg4_gif', id)
|
||||
self.mpeg4_file_id = mpeg4_file_id
|
||||
|
|
|
@ -32,7 +32,8 @@ class InlineQueryResultCachedPhoto(InlineQueryResult):
|
|||
description=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedPhoto, self).__init__('photo', id)
|
||||
self.photo_file_id = photo_file_id
|
||||
|
|
|
@ -29,7 +29,8 @@ class InlineQueryResultCachedSticker(InlineQueryResult):
|
|||
id,
|
||||
sticker_file_id,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedSticker, self).__init__('sticker', id)
|
||||
self.sticker_file_id = sticker_file_id
|
||||
|
|
|
@ -32,7 +32,8 @@ class InlineQueryResultCachedVideo(InlineQueryResult):
|
|||
description=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedVideo, self).__init__('video', id)
|
||||
self.video_file_id = video_file_id
|
||||
|
|
|
@ -31,7 +31,8 @@ class InlineQueryResultCachedVoice(InlineQueryResult):
|
|||
title,
|
||||
description=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultCachedVoice, self).__init__('voice', id)
|
||||
self.voice_file_id = voice_file_id
|
||||
|
|
|
@ -34,7 +34,8 @@ class InlineQueryResultContact(InlineQueryResult):
|
|||
input_message_content=None,
|
||||
thumb_url=None,
|
||||
thumb_width=None,
|
||||
thumb_height=None):
|
||||
thumb_height=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultContact, self).__init__('contact', id)
|
||||
self.phone_number = phone_number
|
||||
|
|
|
@ -36,7 +36,8 @@ class InlineQueryResultDocument(InlineQueryResult):
|
|||
input_message_content=None,
|
||||
thumb_url=None,
|
||||
thumb_width=None,
|
||||
thumb_height=None):
|
||||
thumb_height=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultDocument, self).__init__('document', id)
|
||||
self.document_url = document_url
|
||||
|
|
|
@ -34,7 +34,8 @@ class InlineQueryResultGif(InlineQueryResult):
|
|||
title=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultGif, self).__init__('gif', id)
|
||||
|
|
|
@ -34,7 +34,8 @@ class InlineQueryResultLocation(InlineQueryResult):
|
|||
input_message_content=None,
|
||||
thumb_url=None,
|
||||
thumb_width=None,
|
||||
thumb_height=None):
|
||||
thumb_height=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultLocation, self).__init__('location', id)
|
||||
self.latitude = latitude
|
||||
|
|
|
@ -34,7 +34,8 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
|
|||
title=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultMpeg4Gif, self).__init__('mpeg4_gif', id)
|
||||
|
|
|
@ -35,7 +35,8 @@ class InlineQueryResultPhoto(InlineQueryResult):
|
|||
description=None,
|
||||
caption=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
# Required
|
||||
super(InlineQueryResultPhoto, self).__init__('photo', id)
|
||||
self.photo_url = photo_url
|
||||
|
|
|
@ -36,7 +36,8 @@ class InlineQueryResultVenue(InlineQueryResult):
|
|||
input_message_content=None,
|
||||
thumb_url=None,
|
||||
thumb_width=None,
|
||||
thumb_height=None):
|
||||
thumb_height=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultVenue, self).__init__('venue', id)
|
||||
|
|
|
@ -37,7 +37,8 @@ class InlineQueryResultVideo(InlineQueryResult):
|
|||
video_duration=None,
|
||||
description=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultVideo, self).__init__('video', id)
|
||||
|
|
|
@ -31,7 +31,8 @@ class InlineQueryResultVoice(InlineQueryResult):
|
|||
title,
|
||||
voice_duration=None,
|
||||
reply_markup=None,
|
||||
input_message_content=None):
|
||||
input_message_content=None,
|
||||
**kwargs):
|
||||
|
||||
# Required
|
||||
super(InlineQueryResultVoice, self).__init__('voice', id)
|
||||
|
|
Loading…
Add table
Reference in a new issue