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.1.16 to 0.1.17

5

dist/index.js

@@ -1002,3 +1002,6 @@ "use strict";

async createNewStickerSet(options) {
return await this.callApi('createNewStickerSet', options);
return await this.callApi('createNewStickerSet', {
...options,
stickers: JSON.stringify(options.stickers),
});
}

@@ -1005,0 +1008,0 @@ /**

4

dist/pooling.js

@@ -15,3 +15,3 @@ "use strict";

if (key in message) {
this.telegramBot.emit(key, message);
this.telegramBot.emit(`message:${key}`, message);
}

@@ -22,3 +22,3 @@ });

Object.keys(update).forEach((key) => {
if (key !== 'update_id' && key !== 'poll') {
if (key !== 'update_id') {
const eventType = key;

@@ -25,0 +25,0 @@ const eventData = update[eventType];

import { InputFile, MaskPosition } from './';
export type InputSticker = {
sticker: InputFile | string;
format?: 'static' | 'animated' | 'video';
emoji_list?: string[];
mask_position: MaskPosition;
format: 'static' | 'animated' | 'video';
emoji_list: [string, ...string[]];
mask_position?: MaskPosition;
keywords?: string[];
};

@@ -88,2 +88,4 @@ import { ExternalReplyInfo, Sticker, Venue, Location, Animation, Document, MaybeInaccessibleMessage, ChatBackground, GiveawayCompleted, MessageEntity, LinkPreviewOptions, Poll, InlineKeyboardMarkup, User, PassportData, Game, PhotoSize, Audio, Chat, TextQuote, Story, WriteAccessAllowed, ProximityAlertTriggered, Giveaway, GiveawayWinners, WebAppData, Voice, VideoNote, VideoChatStarted, VideoChatScheduled, VideoChatEnded, VideoChatParticipantsInvited, SuccessfulPayment, Video, UsersShared, MessageOrigin, MessageAutoDeleteTimerChanged, Invoice, GiveawayCreated, GeneralForumTopicUnhidden, GeneralForumTopicHidden, ForumTopicReopened, ForumTopicEdited, ForumTopicCreated, ForumTopicClosed, Dice, Contact, ChatShared, ChatBoostAdded } from './';

export declare const messageTypes: readonly ["text", "animation", "audio", "contact", "dice", "document", "game", "invoice", "location", "passport_data", "photo", "pinned_message", "poll", "sticker", "video", "video_note", "voice", "successful_payment", "migrate_from_chat_id", "migrate_to_chat_id", "new_chat_members", "new_chat_photo", "new_chat_title", "left_chat_member", "delete_chat_photo", "group_chat_created", "supergroup_chat_created", "channel_chat_created", "message_auto_delete_timer_changed", "video_chat_scheduled", "video_chat_started", "video_chat_ended", "video_chat_participants_invited", "web_app_data"];
export type MessageTypes = Required<Record<keyof Pick<Message, (typeof messageTypes)[number]>, Message>>;
export type MessageTypes = {
[P in (typeof messageTypes)[number] as `message:${P}`]: Message & Required<Pick<Message, P>>;
};
{
"type": "commonjs",
"name": "typescript-telegram-bot-api",
"version": "0.1.16",
"version": "0.1.17",
"description": "Telegram Bot API wrapper for Node.js written in TypeScript",

@@ -6,0 +6,0 @@ "repository": "github:Borodin/typescript-telegram-bot-api",

@@ -51,3 +51,3 @@ # 📦 typescript-telegram-bot-api

chat_id: chat_id,
photo: 'AgACAgIAAxkDAAIF62Zq431wDZn6ddGJauzr35UDnc0eAAKf2zEbWP1YSw7ya9P-Yhl_AQADAgADcwADNQQ',
photo: 'AgACAgIAAxkDAAIF62Zq43...AgADcwADNQQ',
caption: 'file_id',

@@ -54,0 +54,0 @@ });

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