Skip to content

Client.sendAnimation

client method · async

Send animation to chat

Client.sendAnimation(
  chat_id: int,
  animation: InputFile | str,
  thumbnail: InputThumbnail = None,
  caption: str = None,
  caption_entities: list = None,
  parse_mode: str = None,
  added_sticker_file_ids: list = None,
  duration: int = 0,
  width: int = 0,
  height: int = 0,
  disable_notification: bool = False,
  protect_content: bool = False,
  allow_paid_broadcast: bool = False,
  has_spoiler: bool = False,
  topic_id: MessageTopic = None,
  quote: InputTextQuote = None,
  reply_to: InputMessageReplyTo = None,
  reply_to_message_id: int = 0,
  receiver_user_id: int = 0,
  callback_query_id: int = 0,
  reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupShowKeyboard | ReplyMarkupForceReply | ReplyMarkupRemoveKeyboard = None
) → Error | Message

Source: pytdbot/methods/methods.py