Skip to content

Commit

Permalink
馃 Merge PR DefinitelyTyped#62620 Add new SendBasicOption by @toniop99
Browse files Browse the repository at this point in the history
* add allowSendingWithoutReply to SendBasicOptions

* remove allow_sending_without_reply from CopyMessageOptions
  • Loading branch information
toniop99 committed Oct 8, 2022
1 parent 213c929 commit 29fc0c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/node-telegram-bot-api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ declare namespace TelegramBot {
reply_to_message_id?: number | undefined;
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply | undefined;
protect_content?: boolean | undefined;
allow_sending_without_reply?: boolean | undefined;
}

interface SendMessageOptions extends SendBasicOptions {
Expand Down Expand Up @@ -288,7 +289,6 @@ declare namespace TelegramBot {
caption?: string | undefined;
parse_mode?: ParseMode | undefined;
caption_entities?: MessageEntity[] | undefined;
allow_sending_without_reply?: boolean | undefined;
}

interface RestrictChatMemberOptions {
Expand Down
2 changes: 1 addition & 1 deletion types/node-telegram-bot-api/node-telegram-bot-api-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MyTelegramBot.deleteWebHook();
MyTelegramBot.getWebHookInfo();
MyTelegramBot.getUpdates({ timeout: 10 });
MyTelegramBot.processUpdate({ update_id: 1 });
MyTelegramBot.sendMessage(1234, 'test-text', { disable_web_page_preview: true });
MyTelegramBot.sendMessage(1234, 'test-text', { disable_web_page_preview: true, allow_sending_without_reply: true });
const res: TelegramBot.InlineQueryResultArticle = {
id: '1',
type: 'article',
Expand Down

0 comments on commit 29fc0c5

Please sign in to comment.