Skip to content

Client.sendAlbum

client method · async

Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages

Client.sendAlbum(
  chat_id: int,
  contents: list[InputMessageAnimation | InputMessageAudio | InputMessageDocument | InputMessagePhoto | InputMessageVideo],
  disable_notification: bool = False,
  protect_content: bool = False,
  allow_paid_broadcast: bool = False,
  topic_id: MessageTopic = None,
  quote: InputTextQuote = None,
  reply_to: InputMessageReplyTo = None,
  reply_to_message_id: int = 0
) → Error | Messages

Source: pytdbot/methods/methods.py