Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/node-telegram-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node-telegram-bot-api - npm Package Compare versions

Comparing version 0.53.6 to 0.56.0

25

node-telegram-bot-api/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for node-telegram-bot-api 0.53
// Type definitions for node-telegram-bot-api 0.56
// Project: https://github.com/yagop/node-telegram-bot-api

@@ -162,2 +162,7 @@ // Definitions by: Alex Muench <https://github.com/ammuench>

interface FileOptions {
filename?: string | undefined;
contentType?: string | undefined;
}
interface SendAudioOptions extends SendBasicOptions {

@@ -1206,3 +1211,3 @@ parse_mode?: ParseMode | undefined;

setWebHook(url: string, options?: TelegramBot.SetWebHookOptions): Promise<any>;
setWebHook(url: string, options?: TelegramBot.SetWebHookOptions, fileOptions?: TelegramBot.FileOptions): Promise<any>;

@@ -1225,5 +1230,5 @@ deleteWebHook(): Promise<boolean>;

sendPhoto(chatId: TelegramBot.ChatId, photo: string | Stream | Buffer, options?: TelegramBot.SendPhotoOptions): Promise<TelegramBot.Message>;
sendPhoto(chatId: TelegramBot.ChatId, photo: string | Stream | Buffer, options?: TelegramBot.SendPhotoOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;
sendAudio(chatId: TelegramBot.ChatId, audio: string | Stream | Buffer, options?: TelegramBot.SendAudioOptions): Promise<TelegramBot.Message>;
sendAudio(chatId: TelegramBot.ChatId, audio: string | Stream | Buffer, options?: TelegramBot.SendAudioOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;

@@ -1234,3 +1239,3 @@ sendAnimation(chatId: TelegramBot.ChatId, animation: string | Stream | Buffer, options?: TelegramBot.SendAnimationOptions): Promise<TelegramBot.Message>;

sendDocument(chatId: TelegramBot.ChatId, doc: string | Stream | Buffer, options?: TelegramBot.SendDocumentOptions, fileOpts?: any): Promise<TelegramBot.Message>;
sendDocument(chatId: TelegramBot.ChatId, doc: string | Stream | Buffer, options?: TelegramBot.SendDocumentOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;

@@ -1246,9 +1251,9 @@ sendMediaGroup(chatId: TelegramBot.ChatId, media: ReadonlyArray<TelegramBot.InputMedia>, options?: TelegramBot.SendMediaGroupOptions): Promise<TelegramBot.Message>;

sendSticker(chatId: TelegramBot.ChatId, sticker: string | Stream | Buffer, options?: TelegramBot.SendStickerOptions): Promise<TelegramBot.Message>;
sendSticker(chatId: TelegramBot.ChatId, sticker: string | Stream | Buffer, options?: TelegramBot.SendStickerOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;
sendVideo(chatId: TelegramBot.ChatId, video: string | Stream | Buffer, options?: TelegramBot.SendVideoOptions): Promise<TelegramBot.Message>;
sendVideo(chatId: TelegramBot.ChatId, video: string | Stream | Buffer, options?: TelegramBot.SendVideoOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;
sendVideoNote(chatId: TelegramBot.ChatId, videoNote: string | Stream | Buffer, options?: TelegramBot.SendVideoNoteOptions): Promise<TelegramBot.Message>;
sendVideoNote(chatId: TelegramBot.ChatId, videoNote: string | Stream | Buffer, options?: TelegramBot.SendVideoNoteOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;
sendVoice(chatId: TelegramBot.ChatId, voice: string | Stream | Buffer, options?: TelegramBot.SendVoiceOptions): Promise<TelegramBot.Message>;
sendVoice(chatId: TelegramBot.ChatId, voice: string | Stream | Buffer, options?: TelegramBot.SendVoiceOptions, fileOptions?: TelegramBot.FileOptions): Promise<TelegramBot.Message>;

@@ -1277,3 +1282,3 @@ sendChatAction(chatId: TelegramBot.ChatId, action: TelegramBot.ChatAction): Promise<boolean>;

setChatPhoto(chatId: TelegramBot.ChatId, photo: string | Stream | Buffer): Promise<boolean>;
setChatPhoto(chatId: TelegramBot.ChatId, photo: string | Stream | Buffer, options?: object, fileOptions?: TelegramBot.FileOptions): Promise<boolean>;

@@ -1280,0 +1285,0 @@ deleteChatPhoto(chatId: TelegramBot.ChatId): Promise<boolean>;

4

node-telegram-bot-api/package.json
{
"name": "@types/node-telegram-bot-api",
"version": "0.53.6",
"version": "0.56.0",
"description": "TypeScript definitions for node-telegram-bot-api",

@@ -61,4 +61,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-telegram-bot-api",

},
"typesPublisherContentHash": "f3894f5131d0c38f07ac7b90d0b81509cf922ad362212f48074a9d76f8cc590b",
"typesPublisherContentHash": "273291296cb02ff4b5b120d7aa3a3d9599763aba22b4cccf2edf62098e5e3d57",
"typeScriptVersion": "3.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 11 Jan 2022 22:31:40 GMT
* Last updated: Sun, 06 Feb 2022 13:01:30 GMT
* Dependencies: [@types/request](https://npmjs.com/package/@types/request), [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc