Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typegram

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typegram - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

2

package.json
{
"name": "typegram",
"version": "3.1.3",
"version": "3.1.4",
"description": "Type declarations for the Telegram API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,4 +0,4 @@

# Types for the Telegram API
# Types for the Telegram Bot API
This project provides TypeScript types for the entire [Telegram API](https://core.telegram.org/bots/api) in version 5.0 which was released on November 4, 2020.
This project provides TypeScript types for the entire [Telegram Bot API](https://core.telegram.org/bots/api) in version 5.0 which was released on November 4, 2020.

@@ -15,3 +15,3 @@ It contains zero bytes of executable code.

Generally this package just exposes a huge load of `interface`s that correspond to the **types** used throughout the Telegram API.
Generally this package just exposes a huge load of `interface`s that correspond to the **types** used throughout the Telegram Bot API.

@@ -49,3 +49,3 @@ Note that the API specification sometimes only has one name for multiple variants of a type, e.g. there is a number of different `Update`s you can receive, but they're all just called `Update`.

Some methods of the Telegram API are expected to be called with JSON-serialized objects contained in a property of the payload, rather than an actual JSON payload.
Some methods of the Telegram Bot API are expected to be called with JSON-serialized objects contained in a property of the payload, rather than an actual JSON payload.
In other words, the objects are serialized twice—the first time in order to conform with the docs, and the second time when the payload is actually sent in the POST body to the API server.

@@ -71,3 +71,3 @@

All of the methods are specified with the actual return type of the Telegram API.
All of the methods are specified with the actual return type of the Telegram Bot API.
If you need them to return `Promise`s instead, consider using `TelegramP`.

@@ -78,3 +78,3 @@ This type maps all methods of `Telegram` to a promisified version.

The Telegram API does not return just the requested data in the body of the response objects.
The Telegram Bot API does not return just the requested data in the body of the response objects.
Instead, they are wrapped inside an object that has an `ok: boolean` status flag, indicating success or failure of the preceding API request.

@@ -94,3 +94,3 @@ This outer object is modelled in `typegram` by the `ApiResponse` type.

The Telegram API lets bots send files in [three different ways](https://core.telegram.org/bots/api#sending-files).
The Telegram Bot API lets bots send files in [three different ways](https://core.telegram.org/bots/api#sending-files).
Two of those ways are by specifying a `string`—either a `file_id` or a URL.

@@ -97,0 +97,0 @@ The third option, however, is by uploading files to the server using multipart/form-data.

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