Skip to content

Client.sendInvoice

client method · async

Send invoice to chat

Client.sendInvoice(
  chat_id: int,
  title: str,
  amount: int,
  payload: bytes,
  description: str = '',
  subscription_period: int = 0,
  start_parameter: str = '',
  photo_url: str = '',
  photo_size: int = 0,
  photo_width: int = 0,
  photo_height: int = 0,
  recurring_payment_terms_of_service_url: str = '',
  terms_of_service_url: str = '',
  reply_to: InputMessageReplyTo | None = None,
  reply_to_message_id: int = 0
) → Error | Message

Source: pytdbot/methods/methods.py