diff --git a/typings/context.d.ts b/typings/context.d.ts index 7e029147f..5acdce55e 100644 --- a/typings/context.d.ts +++ b/typings/context.d.ts @@ -425,7 +425,7 @@ export declare class TelegrafContext { * @param markup Markup of inline keyboard */ editMessageCaption( - caption?: string, + caption: string | undefined, markup?: tt.InlineKeyboardMarkup ): Promise @@ -435,7 +435,7 @@ export declare class TelegrafContext { * @param markup Markup of inline keyboard */ editMessageReplyMarkup( - markup?: tt.InlineKeyboardMarkup + markup: tt.InlineKeyboardMarkup | undefined ): Promise /** diff --git a/typings/telegram.d.ts b/typings/telegram.d.ts index fe20680f3..f3143d2a4 100644 --- a/typings/telegram.d.ts +++ b/typings/telegram.d.ts @@ -137,8 +137,8 @@ export declare class Telegram extends ApiClient { chatId: number | string | undefined, messageId: number | undefined, inlineMessageId: string | undefined, - caption: string, - markup: string + caption: string | undefined, + markup?: tt.InlineKeyboardMarkup ): Promise /** @@ -153,7 +153,7 @@ export declare class Telegram extends ApiClient { chatId: number | string | undefined, messageId: number | undefined, inlineMessageId: string | undefined, - markup: string + markup: tt.InlineKeyboardMarkup | undefined ): Promise /**