đ§ send_live_photo
Use this method to send a live photo.
âī¸ Parameters
chat_id(intorstr): Unique identifier for the target chat or username of the target channellive_photo(str): Live photo to send. Pass a file_id to send a file that exists on the Telegram serversbusiness_connection_id(str) (optional): Identifier of the business connection to send the message throughmessage_thread_id(int) (optional): Unique identifier for the target message thread (topic) of the forumcaption(str) (optional): Live photo caption, 0-1024 characters after entities parsingparse_mode(Literal) (optional): Mode for parsing entities in the live photo captioncaption_entities(List of MessageEntity ) (optional): List of special entities that appear in the captionshow_caption_above_media(bool) (optional): True, if the caption must be shown above the message mediahas_spoiler(bool) (optional): True, if the live photo needs to be covered with a spoiler animationdisable_notification(bool) (optional): Sends the message silently. Users will receive a notification with no sound.protect_content(bool) (optional): Protects the contents of the sent message from forwarding and savingmessage_effect_id(str) (optional): Unique identifier of the message effectreply_parameters(ReplyParameters ) (optional): Reply parameters.reply_markup(InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply ) (optional): Additional interface options.allow_paid_broadcast(bool) (optional): Pass True to allow up to 1000 messages per second
đ˛ Returns
Message
đ Examples
-đĒĢ Required Parameters
await bot.send_live_photo(
chat_id=your_chat_id_here,
live_photo=your_live_photo_here
)
-đ All Parameters
await bot.send_live_photo(
chat_id=your_chat_id_here,
live_photo=your_live_photo_here,
business_connection_id=your_business_connection_id_here,
message_thread_id=your_message_thread_id_here,
caption=your_caption_here,
parse_mode=your_parse_mode_here,
caption_entities=your_caption_entities_here,
show_caption_above_media=your_show_caption_above_media_here,
has_spoiler=your_has_spoiler_here,
disable_notification=your_disable_notification_here,
protect_content=your_protect_content_here,
message_effect_id=your_message_effect_id_here,
reply_parameters=your_reply_parameters_here,
reply_markup=your_reply_markup_here,
allow_paid_broadcast=your_allow_paid_broadcast_here
)