diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index cacc064abd..7785617957 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Alex Muench // Agadar // Giorgio Garasto +// Kallu609 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -109,6 +110,11 @@ declare namespace TelegramBot { caption?: string; } + interface SendMediaGroupOptions { + disable_notification?: boolean; + reply_to_message_id?: number; + } + type SendStickerOptions = SendBasicOptions; interface SendVideoOptions extends SendBasicOptions { @@ -355,6 +361,17 @@ declare namespace TelegramBot { mime_type?: string; } + interface InputMediaPhoto { + type: string; + media: string; + fileOptions?: { + filename: string; + contentType: string; + }; + } + + type InputMediaVideo = InputMediaPhoto; + interface VideoNote extends FileBase { length: number; duration: number; @@ -835,6 +852,8 @@ declare class TelegramBot extends EventEmitter { sendDocument(chatId: number | string, doc: string | Stream | Buffer, options?: TelegramBot.SendDocumentOptions, fileOpts?: any): Promise; + sendMediaGroup(chatId: number | string, media: Array, options?: TelegramBot.SendMediaGroupOptions): Promise; + sendSticker(chatId: number | string, sticker: string | Stream | Buffer, options?: TelegramBot.SendStickerOptions): Promise; sendVideo(chatId: number | string, video: string | Stream | Buffer, options?: TelegramBot.SendVideoOptions): Promise;