• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/dispatcher
  • filters
  • replyTo

Function replyTo

  • replyTo<Mod, State extends object>(
        filter?: filters.UpdateFilter<Message, Mod, State>,
    ): filters.UpdateFilter<
        MessageContext
        | BusinessMessageContext,
        { getReplyTo: () => Promise<Message & Mod> },
        State,
    >
  • Filter that matches messages that are replies to some other message that can be fetched (i.e. not private origin, and has not been deleted)

    Optionally, you can pass a filter that will be applied to the replied message.

    Type Parameters

    • Mod
    • State extends object

    Parameters

    • Optionalfilter: filters.UpdateFilter<Message, Mod, State>

    Returns filters.UpdateFilter<
        MessageContext
        | BusinessMessageContext,
        { getReplyTo: () => Promise<Message & Mod> },
        State,
    >

    • Defined in packages/dispatcher/src/filters/message.ts:260

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc