@types/node-telegram-bot-api
Advanced tools
Comparing version 0.40.0 to 0.40.1
@@ -284,2 +284,32 @@ // Type definitions for node-telegram-bot-api 0.40 | ||
/// TELEGRAM TYPES /// | ||
interface PassportFile { | ||
file_id: string; | ||
file_size: number; | ||
file_date: number; | ||
} | ||
interface EncryptedPassportElement { | ||
type: string; | ||
data?: string; | ||
phone_number?: string; | ||
email?: string; | ||
files?: PassportFile[]; | ||
front_side?: PassportFile; | ||
reverse_side?: PassportFile; | ||
selfie?: PassportFile; | ||
translation?: PassportFile[]; | ||
hash: string; | ||
} | ||
interface EncryptedCredentials { | ||
data: string; | ||
hash: string; | ||
secret: string; | ||
} | ||
interface PassportData { | ||
data: EncryptedPassportElement[]; | ||
credentials: EncryptedCredentials; | ||
} | ||
interface Update { | ||
@@ -383,2 +413,3 @@ update_id: number; | ||
connected_website?: string; | ||
passport_data?: PassportData; | ||
reply_markup?: InlineKeyboardMarkup; | ||
@@ -1114,3 +1145,3 @@ } | ||
sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, currency: string, | ||
prices: ReadonlyArray<TelegramBot.LabeledPrice>, options?: TelegramBot.SendInvoiceOptions): Promise<TelegramBot.Message>; | ||
prices: ReadonlyArray<TelegramBot.LabeledPrice>, options?: TelegramBot.SendInvoiceOptions): Promise<TelegramBot.Message>; | ||
@@ -1117,0 +1148,0 @@ answerShippingQuery(shippingQueryId: string, ok: boolean, options?: TelegramBot.AnswerShippingQueryOptions): Promise<boolean>; |
{ | ||
"name": "@types/node-telegram-bot-api", | ||
"version": "0.40.0", | ||
"version": "0.40.1", | ||
"description": "TypeScript definitions for node-telegram-bot-api", | ||
@@ -39,3 +39,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -51,4 +51,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "efe4b255a0965dd81b80c1fa03a3b3c9e26ad70916f1b62e9af83e04f9676a11", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "c6e6b129bf60dac0c3706bfaa5fa48c3eeec3025229bffc5c202cd19c14cda18", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-telegram-bot-api | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-telegram-bot-api. | ||
Additional Details | ||
* Last updated: Mon, 04 Nov 2019 17:03:29 GMT | ||
* Dependencies: @types/request, @types/node | ||
### Additional Details | ||
* Last updated: Mon, 16 Dec 2019 11:39:11 GMT | ||
* Dependencies: [@types/request](https://npmjs.com/package/@types/request), [@types/node](https://npmjs.com/package/@types/node) | ||
* 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>, XC-Zhang <https://github.com/XC-Zhang>, and AdityaThebe <https://github.com/adityathebe>. | ||
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), and AdityaThebe (https://github.com/adityathebe). |
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
47864
1122