• Get messages from PM or legacy group by their IDs. For channels, use getMessages.

    Unlike getMessages, this method does not check if the message belongs to some chat.

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

    Parameters

    • client: ITelegramClient
    • 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)[]>