@types/node-telegram-bot-api
Advanced tools
Comparing version 0.28.4 to 0.30.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for node-telegram-bot-api 0.28 | ||
// Type definitions for node-telegram-bot-api 0.30 | ||
// Project: https://github.com/yagop/node-telegram-bot-api | ||
@@ -7,2 +7,3 @@ // Definitions by: Alex Muench <https://github.com/ammuench> | ||
// Kallu609 <https://github.com/Kallu609> | ||
// XC-Zhang <https://github.com/XC-Zhang> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -14,3 +15,3 @@ // TypeScript Version: 2.3 | ||
import { EventEmitter } from 'events'; | ||
import { Stream } from 'stream'; | ||
import { Stream, Readable } from 'stream'; | ||
import { ServerOptions } from 'https'; | ||
@@ -63,2 +64,7 @@ import { Options } from 'request'; | ||
interface StopPollingOptions { | ||
cancel?: boolean; | ||
reason?: string; | ||
} | ||
interface SetWebHookOptions { | ||
@@ -142,2 +148,6 @@ url?: string; | ||
type EditMessageLiveLocationOptions = EditMessageCaptionOptions; | ||
type StopMessageLiveLocationOptions = EditMessageCaptionOptions; | ||
interface SendVenueOptions extends SendBasicOptions { | ||
@@ -154,2 +164,3 @@ foursquare_id?: string; | ||
interface SendInvoiceOptions extends SendBasicOptions { | ||
provider_data?: string; | ||
photo_url?: string; | ||
@@ -826,3 +837,3 @@ photo_size?: number; | ||
stopPolling(): Promise<any>; | ||
stopPolling(options?: TelegramBot.StopPollingOptions): Promise<any>; | ||
@@ -895,2 +906,7 @@ isPolling(): boolean; | ||
answerCallbackQuery(callbackQueryId: string, options?: Partial<TelegramBot.AnswerCallbackQueryOptions>): Promise<boolean | Error>; | ||
/** | ||
* @deprecated since version 0.30.0 | ||
*/ | ||
answerCallbackQuery(options?: TelegramBot.AnswerCallbackQueryOptions): Promise<boolean | Error>; | ||
@@ -908,2 +924,6 @@ | ||
editMessageLiveLocation(latitude: number, longitude: number, options?: TelegramBot.EditMessageLiveLocationOptions): Promise<TelegramBot.Message | boolean | Error>; | ||
stopMessageLiveLocation(options?: TelegramBot.StopMessageLiveLocationOptions): Promise<TelegramBot.Message | boolean | Error>; | ||
sendVenue(chatId: number | string, latitude: number, longitude: number, title: string, address: string, options?: TelegramBot.SendVenueOptions): Promise<TelegramBot.Message | Error>; | ||
@@ -917,2 +937,4 @@ | ||
getFileStream(fileId: string): Readable; | ||
downloadFile(fileId: string, downloadDir: string): Promise<string | Error>; | ||
@@ -938,2 +960,6 @@ | ||
setChatStickerSet(chatId: number | string, stickerSetName: string): Promise<boolean | Error>; | ||
deleteChatStickerSet(chatId: number | string): Promise<boolean | Error>; | ||
sendGame(chatId: number | string, gameShortName: string, options?: TelegramBot.SendGameOptions): Promise<TelegramBot.Message | Error>; | ||
@@ -940,0 +966,0 @@ |
{ | ||
"name": "@types/node-telegram-bot-api", | ||
"version": "0.28.4", | ||
"version": "0.30.0", | ||
"description": "TypeScript definitions for node-telegram-bot-api", | ||
@@ -26,2 +26,7 @@ "license": "MIT", | ||
"githubUsername": "Kallu609" | ||
}, | ||
{ | ||
"name": "XC-Zhang", | ||
"url": "https://github.com/XC-Zhang", | ||
"githubUsername": "XC-Zhang" | ||
} | ||
@@ -40,4 +45,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "2d3b14b15544e66b81387458a953afd1ea0eb03bf6b3bbb660ea114c5c2dec72", | ||
"typesPublisherContentHash": "b5609da88cca67f199f5062f990d6a270f35f3c8c54987b73952817ee4eaa913", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 30 May 2018 01:28:45 GMT | ||
* Last updated: Fri, 01 Jun 2018 22:02:05 GMT | ||
* Dependencies: events, stream, https, request, node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Alex Muench <https://github.com/ammuench>, Agadar <https://github.com/agadar>, Giorgio Garasto <https://github.com/Dabolus>, Kallu609 <https://github.com/Kallu609>. | ||
These definitions were written by Alex Muench <https://github.com/ammuench>, Agadar <https://github.com/agadar>, Giorgio Garasto <https://github.com/Dabolus>, Kallu609 <https://github.com/Kallu609>, XC-Zhang <https://github.com/XC-Zhang>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32272
787