• Get messages in chat by their IDs

    Fot messages that were not found, null will be returned at that position.

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      Chat's marked ID, its username, phone or "me" or "self"

    • messageIds: MaybeArray<number>

      Messages IDs

    • OptionalfromReply: boolean = false

      Whether the reply to a given message should be fetched (i.e. getMessages(msg.chat.id, msg.id, true).id === msg.replyToMessageId)

    Returns Promise<(Message | null)[]>