typescript-telegram-bot-api
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -78,2 +78,4 @@ export * from './Animation'; | ||
export * from './GeneralForumTopicUnhidden'; | ||
export * from './Gift'; | ||
export * from './Gifts'; | ||
export * from './Giveaway'; | ||
@@ -80,0 +82,0 @@ export * from './GiveawayCompleted'; |
@@ -94,2 +94,4 @@ "use strict"; | ||
__exportStar(require("./GeneralForumTopicUnhidden"), exports); | ||
__exportStar(require("./Gift"), exports); | ||
__exportStar(require("./Gifts"), exports); | ||
__exportStar(require("./Giveaway"), exports); | ||
@@ -96,0 +98,0 @@ __exportStar(require("./GiveawayCompleted"), exports); |
@@ -23,2 +23,14 @@ import { Currencies, OrderInfo } from './'; | ||
/** | ||
* Optional. Expiration date of the subscription, in Unix time; for recurring payments only | ||
*/ | ||
subscription_expiration_date?: number; | ||
/** | ||
* Optional. True, if the payment is a recurring payment for a subscription | ||
*/ | ||
is_recurring?: boolean; | ||
/** | ||
* Optional. True, if the payment is the first payment for a subscription | ||
*/ | ||
is_first_recurring?: boolean; | ||
/** | ||
* Optional. Identifier of the shipping option chosen by the user | ||
@@ -25,0 +37,0 @@ */ |
import { User } from './User'; | ||
import { PaidMedia } from './PaidMedia'; | ||
import { Gift } from './Gift'; | ||
/** | ||
@@ -22,2 +23,6 @@ * ## TransactionPartnerUser | ||
/** | ||
* Optional. The duration of the paid subscription | ||
*/ | ||
subscription_period?: number; | ||
/** | ||
* Optional. Information about the paid media bought by the user | ||
@@ -30,2 +35,6 @@ */ | ||
paid_media_payload: string; | ||
/** | ||
* Optional. The gift sent to the user by the bot | ||
*/ | ||
gift?: Gift; | ||
}; |
{ | ||
"type": "commonjs", | ||
"name": "typescript-telegram-bot-api", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Telegram Bot API wrapper for Node.js written in TypeScript", | ||
@@ -10,3 +10,3 @@ "repository": "github:Borodin/typescript-telegram-bot-api", | ||
"scripts": { | ||
"test": "jest --runInBand --detectOpenHandles --coverage", | ||
"test": "jest --runInBand --verbose --detectOpenHandles --coverage", | ||
"lint": "eslint '{src,tests}/**/*.ts'", | ||
@@ -37,4 +37,4 @@ "format": "prettier --write '{src,tests}/**/*.ts'", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "22.8.4", | ||
"axios-mock-adapter": "^1.22.0", | ||
"@types/node": "^22.9.0", | ||
"axios-mock-adapter": "^2.1.0", | ||
"dotenv": "^16.4.5", | ||
@@ -41,0 +41,0 @@ "eslint": "^8.57.0", |
@@ -6,3 +6,4 @@ # 📦 typescript-telegram-bot-api | ||
[](https://codecov.io/github/Borodin/typescript-telegram-bot-api) | ||
[](https://core.telegram.org/bots/api#october-31-2024) | ||
[](https://codesandbox.io/p/sandbox/interesting-wave-qgspfs) | ||
[](https://core.telegram.org/bots/api#november-17-2024) | ||
@@ -218,4 +219,10 @@ | ||
``` | ||
```bash | ||
docker build -t typescript-bot-api . | ||
docker run --rm --env-file .env typescript-bot-api run test | ||
``` | ||
CI/CD is set up with GitHub Actions. Tests and linters are run on every pull request. | ||
If you want to run tests locally, follow the instructions in [tests/README.md](tests/). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
465409
465
12137
227