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

gramio

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gramio - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

dist/index.d.ts

@@ -582,3 +582,3 @@ import { CallbackData } from '@gramio/callback-data';

/** @deprecated use bot.start instead @internal */
startPolling(params?: APIMethodParams<"getUpdates">): Promise<void>;
startPolling(params?: APIMethodParams<"getUpdates">): void;
startFetchLoop(params?: APIMethodParams<"getUpdates">): Promise<void>;

@@ -1072,2 +1072,2 @@ stopPolling(): void;

export { type AnyBot, type AnyPlugin, Bot, type BotOptions, Composer, type DeriveDefinitions, type ErrorDefinitions, ErrorKind, type FilterDefinitions, type Handler, Hooks, type MaybePromise, type MaybeSuppressedParams, Plugin, type Suppress, type SuppressedAPIMethodParams, type SuppressedAPIMethodReturn, type SuppressedAPIMethods, TelegramError, Updates, type WebhookHandlers, webhookHandler };
export { type AnyBot, type AnyPlugin, Bot, type BotOptions, Composer, type DeriveDefinitions, type ErrorDefinitions, ErrorKind, type FilterDefinitions, type Handler, Hooks, type MaybePromise, type MaybeSuppressedParams, type MaybeSuppressedReturn, Plugin, type Suppress, type SuppressedAPIMethodParams, type SuppressedAPIMethodReturn, type SuppressedAPIMethods, TelegramError, Updates, type WebhookHandlers, webhookHandler };

@@ -322,2 +322,3 @@ import fs from 'node:fs/promises';

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
class UpdateQueue {

@@ -409,3 +410,3 @@ updateQueue = [];

/** @deprecated use bot.start instead @internal */
async startPolling(params = {}) {
startPolling(params = {}) {
if (this.isStarted) throw new Error("[UPDATES] Polling already started!");

@@ -1110,4 +1111,5 @@ this.isStarted = true;

drop_pending_updates: dropPendingUpdates
// suppress: true,
});
await this.updates.startPolling({
this.updates.startPolling({
allowed_updates: allowedUpdates

@@ -1128,2 +1130,3 @@ });

allowed_updates: allowedUpdates
// suppress: true,
});

@@ -1130,0 +1133,0 @@ this.runImmutableHooks("onStart", {

{
"name": "gramio",
"type": "module",
"version": "0.2.1",
"version": "0.2.2",
"description": "Powerful, extensible and really type-safe Telegram Bot API framework",

@@ -46,3 +46,3 @@ "main": "dist/index.cjs",

"@types/debug": "^4.1.12",
"pkgroll": "^2.5.1",
"pkgroll": "^2.6.0",
"typescript": "^5.7.2"

@@ -55,4 +55,4 @@ },

"@gramio/format": "^0.1.5",
"@gramio/keyboards": "^1.0.2",
"@gramio/types": "^8.1.0",
"@gramio/keyboards": "^1.1.0",
"@gramio/types": "^8.2.0",
"debug": "^4.4.0",

@@ -59,0 +59,0 @@ "inspectable": "^3.0.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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