telegram.inlinequeryresultphoto module¶
This module contains the classes that represent Telegram InlineQueryResultPhoto
-
class
telegram.inlinequeryresultphoto.InlineQueryResultPhoto(id, photo_url, thumb_url, photo_width=None, photo_height=None, title=None, description=None, caption=None, reply_markup=None, input_message_content=None, **kwargs)¶ Bases:
telegram.inlinequeryresult.InlineQueryResultRepresents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
-
photo_url¶ str – A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB.
-
thumb_url¶ str – URL of the thumbnail for the photo.
-
photo_width¶ Optional[int] – Width of the photo.
-
photo_height¶ Optional[int] – Height of the photo.
-
title¶ Optional[str] – Title for the result.
-
description¶ Optional[str] – Short description of the result.
-
caption¶ Optional[str] – Caption of the photo to be sent, 0-200 characters.
-
reply_markup¶ Optional[
telegram.InlineKeyboardMarkup] – Inline keyboard attached to the message.
-
input_message_content¶ Optional[
telegram.InputMessageContent] – Content of the message to be sent instead of the photo.
-
static
de_json(data, bot)¶
-