@types/node-telegram-bot-api
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -1,8 +0,13 @@ | ||
// Type definitions for node-telegram-bot-api 0.27 | ||
// Type definitions for node-telegram-bot-api 0.28 | ||
// Project: https://github.com/yagop/node-telegram-bot-api | ||
// Definitions by: Alex Muench <https://github.com/ammuench> | ||
// Agadar <https://github.com/agadar> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
/// <reference types="node" /> | ||
declare class TelegramBot { | ||
import { EventEmitter } from 'events'; | ||
import { Stream } from "stream"; | ||
declare class TelegramBot extends EventEmitter { | ||
constructor(token: string, opts?: any); | ||
@@ -26,16 +31,26 @@ | ||
forwardMessage(chatId: number | string, fromChatId: number | string, messageId: number | string, options?: any): Promise<any>; | ||
sendPhoto(chatId: number | string, photo: any, options?: any): Promise<any>; | ||
sendAudio(chatId: number | string, audio: any, options?: any): Promise<any>; | ||
sendDocument(chatId: number | string, doc: any, options?: any, fileOpts?: any): Promise<any>; | ||
sendSticker(chatId: number | string, sticker: any, options?: any): Promise<any>; | ||
sendVideo(chatId: number | string, video: any, options?: any): Promise<any>; | ||
sendVoice(chatId: number | string, voice: any, options?: any): Promise<any>; | ||
sendPhoto(chatId: number | string, photo: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendAudio(chatId: number | string, audio: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendDocument(chatId: number | string, doc: string | Stream | Buffer, options?: any, fileOpts?: any): Promise<any>; | ||
sendSticker(chatId: number | string, sticker: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendVideo(chatId: number | string, video: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendVideoNote(chatId: number | string, videoNote: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendVoice(chatId: number | string, voice: string | Stream | Buffer, options?: any): Promise<any>; | ||
sendChatAction(chatId: number | string, action: string): Promise<any>; | ||
kickChatMember(chatId: number | string, userId: string): Promise<any>; | ||
unbanChatMember(chatId: number | string, userId: string): Promise<any>; | ||
answerCallbackQuery(callbackQueryId: number | string, text: string, showAlert: boolean, options?: any): Promise<any>; | ||
restrictChatMember(chatId: number | string, userId: string, options?: any): Promise<any>; | ||
promoteChatMember(chatId: number | string, userId: string, options?: any): Promise<any>; | ||
exportChatInviteLink(chatId: number | string): Promise<any>; | ||
sendChatPhoto(chatId: number | string, photo: string | Stream | Buffer): Promise<any>; | ||
deleteChatPhoto(chatId: number | string): Promise<any>; | ||
setChatTitle(chatId: number | string, title: string): Promise<any>; | ||
setChatDescription(chatId: number | string, description: string): Promise<any>; | ||
pinChatMessage(chatId: number | string, messageId: string): Promise<any>; | ||
unpinChatMessage(chatId: number | string): Promise<any>; | ||
answerCallbackQuery(options?: any): Promise<any>; | ||
editMessageText(text: string, options?: any): Promise<any>; | ||
editMessageCaption(caption: string, options?: any): Promise<any>; | ||
editMessageReplyMarkup(replyMarkup: any, options?: any): Promise<any>; | ||
getUserProfilePhotos(userId: string, options?: any): Promise<any>; | ||
getUserProfilePhotos(userId: number | string, options?: any): Promise<any>; | ||
sendLocation(chatId: number | string, latitude: number, longitude: number, options?: any): Promise<any>; | ||
@@ -47,3 +62,4 @@ sendVenue(chatId: number | string, latitude: number, longitude: number, title: string, address: string, options?: any): Promise<any>; | ||
downloadFile(fileId: string, downloadDir: string): Promise<any>; | ||
onText(regexp: any, callback: ((msg: any, match: any[]) => void)): void; | ||
onText(regexp: RegExp, callback: ((msg: any, match: any[]) => void)): void; | ||
removeTextListener(regexp: RegExp): any; | ||
onReplyToMessage(chatId: number | string, messageId: number | string, callback: ((msg: any) => void)): number; | ||
@@ -59,4 +75,9 @@ removeReplyListener(replyListenerId: number): any; | ||
getGameHighScores(userId: string, options?: any): Promise<any>; | ||
deleteMessage(chatId: number | string, messageId: string, options?: any): Promise<any>; | ||
sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, | ||
currency: string, prices: any[], options?: any): Promise<any>; | ||
answerShippingQuery(shippingQueryId: string, ok: boolean, options?: any): Promise<any>; | ||
answerPreCheckoutQuery(preCheckoutQueryId: string, ok: boolean, options?: any): Promise<any>; | ||
} | ||
export = TelegramBot; |
{ | ||
"name": "@types/node-telegram-bot-api", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"description": "TypeScript definitions for node-telegram-bot-api", | ||
@@ -10,2 +10,6 @@ "license": "MIT", | ||
"url": "https://github.com/ammuench" | ||
}, | ||
{ | ||
"name": "Agadar", | ||
"url": "https://github.com/agadar" | ||
} | ||
@@ -19,6 +23,7 @@ ], | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4f612c01bbe67faa4a0e2031c9c2b110575d97d8bd6eb6226b2e59be7b7246e3", | ||
"dependencies": { | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "4c995ff09a8c1959ee3f5330e2265e858737f4b45260728be88c6ad8435768f1", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 01 Jun 2017 05:39:12 GMT | ||
* Dependencies: none | ||
* Last updated: Mon, 21 Aug 2017 21:59:27 GMT | ||
* Dependencies: events, stream, node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Alex Muench <https://github.com/ammuench>. | ||
These definitions were written by Alex Muench <https://github.com/ammuench>, Agadar <https://github.com/agadar>. |
Sorry, the diff of this file is not supported yet
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
7709
76
1
+ Added@types/node@*
+ Added@types/node@22.9.1(transitive)
+ Addedundici-types@6.19.8(transitive)