New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typescript-telegram-bot-api

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-telegram-bot-api - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dist/types/Gift.d.ts

2

dist/types/index.d.ts

@@ -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;
};

8

package.json
{
"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

[![codecov](https://codecov.io/github/Borodin/typescript-telegram-bot-api/graph/badge.svg?token=509N5AZDTV)](https://codecov.io/github/Borodin/typescript-telegram-bot-api)
[![GitHub](https://img.shields.io/badge/Bot_API-v7.11-0088cc)](https://core.telegram.org/bots/api#october-31-2024)
[![codesandbox](https://img.shields.io/badge/Open_in-sandbox-eaff96)](https://codesandbox.io/p/sandbox/interesting-wave-qgspfs)
[![GitHub](https://img.shields.io/badge/Bot_API-v8.0-0088cc)](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

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