Skip to content

Commit

Permalink
refactor: explicit method return type
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Nov 28, 2023
1 parent 3c4b7ae commit 08fb845
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {Context as BaseContext} from 'grammy';
import type {Message} from 'grammy/types';
import {
getAdditionalState,
isContextReplyToMessage,
Expand Down Expand Up @@ -54,7 +55,7 @@ export class StatelessQuestion<Context extends BaseContext> {
context: BaseContext,
text: string,
additionalState?: string,
) {
): Promise<Message.TextMessage> {
const textResult = text + this.messageSuffixHTML(additionalState);
return context.reply(textResult, {
reply_markup: {force_reply: true},
Expand All @@ -66,7 +67,7 @@ export class StatelessQuestion<Context extends BaseContext> {
context: BaseContext,
text: string,
additionalState?: string,
) {
): Promise<Message.TextMessage> {
const textResult = text + this.messageSuffixMarkdown(additionalState);
return context.reply(textResult, {
reply_markup: {force_reply: true},
Expand All @@ -78,7 +79,7 @@ export class StatelessQuestion<Context extends BaseContext> {
context: BaseContext,
text: string,
additionalState?: string,
) {
): Promise<Message.TextMessage> {
const textResult = text + this.messageSuffixMarkdownV2(additionalState);
return context.reply(textResult, {
reply_markup: {force_reply: true},
Expand Down

0 comments on commit 08fb845

Please sign in to comment.