UNPKG

628 BTypeScriptView Raw
1import Context from './context';
2import { Middleware } from './middleware';
3/**
4 * Sets up Context to use the new reply methods.
5 * This middleware makes `ctx.reply()` and `ctx.replyWith*()` methods will actually reply to the message they are replying to.
6 * Use `ctx.sendMessage()` to send a message in chat without replying to it.
7 *
8 * If the message to reply is deleted, `reply()` will send a normal message.
9 * If the update is not a message and we are unable to reply, `reply()` will send a normal message.
10 */
11export declare function useNewReplies<C extends Context>(): Middleware<C>;
12//# sourceMappingURL=future.d.ts.map
\No newline at end of file