From 08fb8452a26914b169ef312f9d1c466e7c653844 Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Tue, 28 Nov 2023 20:26:52 +0100 Subject: [PATCH] refactor: explicit method return type --- source/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/index.ts b/source/index.ts index 8ca199c..30d9197 100644 --- a/source/index.ts +++ b/source/index.ts @@ -1,4 +1,5 @@ import type {Context as BaseContext} from 'grammy'; +import type {Message} from 'grammy/types'; import { getAdditionalState, isContextReplyToMessage, @@ -54,7 +55,7 @@ export class StatelessQuestion { context: BaseContext, text: string, additionalState?: string, - ) { + ): Promise { const textResult = text + this.messageSuffixHTML(additionalState); return context.reply(textResult, { reply_markup: {force_reply: true}, @@ -66,7 +67,7 @@ export class StatelessQuestion { context: BaseContext, text: string, additionalState?: string, - ) { + ): Promise { const textResult = text + this.messageSuffixMarkdown(additionalState); return context.reply(textResult, { reply_markup: {force_reply: true}, @@ -78,7 +79,7 @@ export class StatelessQuestion { context: BaseContext, text: string, additionalState?: string, - ) { + ): Promise { const textResult = text + this.messageSuffixMarkdownV2(additionalState); return context.reply(textResult, { reply_markup: {force_reply: true},