• Send a text message

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

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

    • text: InputText

      Text of the message

    • Optionalparams: CommonSendParams & {
          disableWebPreview?: boolean;
          invertMedia?: boolean;
          replyMarkup?: ReplyMarkup;
      }

      Additional sending parameters

      • OptionaldisableWebPreview?: boolean

        Whether to disable links preview in this message

      • OptionalinvertMedia?: boolean

        Whether to invert media position.

        Currently only supported for web previews and makes the client render the preview above the caption and not below.

      • OptionalreplyMarkup?: ReplyMarkup

        For bots: inline or reply markup or an instruction to hide a reply keyboard or to force a reply.

    Returns Promise<Message>