Skip to content

Client.sendDocument

client method · async

Send document to chat

Client.sendDocument(
  chat_id: int,
  document: InputFile | str,
  thumbnail: InputThumbnail = None,
  caption: str = None,
  caption_entities: list = None,
  parse_mode: str = None,
  disable_content_type_detection: bool = True,
  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,
  receiver_user_id: int = 0,
  callback_query_id: int = 0,
  reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupShowKeyboard | ReplyMarkupForceReply | ReplyMarkupRemoveKeyboard = None
) → Error | Message

Source: pytdbot/methods/methods.py