• Send a single media (a photo or a document-based media)

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      ID of the chat, its username, phone or "me" or "self"

    • media: string | InputMediaLike

      Media contained in the message. You can also pass TDLib and Bot API compatible File ID, which will be wrapped in InputMedia.auto

    • Optionalparams: CommonSendParams & {
          caption?: InputText;
          invert?: boolean;
          progressCallback?: ((uploaded: number, total: number) => void);
          replyMarkup?: ReplyMarkup;
      }

      Additional sending parameters

    Returns Promise<Message>

    InputMedia