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

puregram

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puregram - npm Package Compare versions

Comparing version 2.13.2 to 2.14.0

2

lib/common/attachments/sticker.d.ts

@@ -13,3 +13,3 @@ import * as Interfaces from '../../generated/telegram-interfaces';

*/
get type(): import("../../types/types").SoftString<Interfaces.TelegramStickerType>;
get type(): import("../../types/types").SoftString<Interfaces.TelegramStickerType> | import("../..").StickerType;
/** Sticker width */

@@ -16,0 +16,0 @@ get width(): number;

import * as Interfaces from '../../generated/telegram-interfaces';
interface TextButtonParams {
text: string;
payload?: Record<string, any> | string;
payload: Record<string, any> | string;
}

@@ -9,3 +9,2 @@ interface UrlButtonParams {

url: string;
payload?: Record<string, any> | string;
}

@@ -12,0 +11,0 @@ interface WebAppButtonParams {

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

text: params.text,
callback_data: params.payload || ''
callback_data: params.payload
};

@@ -41,9 +41,5 @@ }

static urlButton(params) {
if (typeof params.payload === 'object') {
params.payload = JSON.stringify(params.payload);
}
return {
text: params.text,
url: params.url,
callback_data: params.payload || ''
url: params.url
};

@@ -50,0 +46,0 @@ }

import * as Interfaces from '../../generated/telegram-interfaces';
import { MaybeArray } from '../../types/types';
/** Keyboard */

@@ -12,3 +13,3 @@ export declare class Keyboard {

/** Assemble a builder of buttons */
static keyboard(rows: (Interfaces.TelegramKeyboardButton | Interfaces.TelegramKeyboardButton[])[]): Keyboard;
static keyboard(rows: MaybeArray<Interfaces.TelegramKeyboardButton | string>[]): Keyboard;
/** Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to `false`, in which case the custom keyboard is always of the same height as the app's standard keyboard */

@@ -15,0 +16,0 @@ resize(resize?: boolean): this;

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

row = [row];
this.buttons.push(row);
this.buttons.push(row.map(e => typeof e === 'string' ? Keyboard_1.textButton(e) : e));
return this;

@@ -132,0 +132,0 @@ }

@@ -20,3 +20,3 @@ import * as Interfaces from '../../generated/telegram-interfaces';

/** The member's status in the chat */
get status(): "creator" | "administrator" | "member" | "restricted" | "left" | "kicked";
get status(): "creator" | import("../..").ChatMemberStatus | "administrator" | "member" | "restricted" | "left" | "kicked";
/** Owner and administrators only. Custom title for this user */

@@ -23,0 +23,0 @@ get customTitle(): string | undefined;

@@ -24,3 +24,3 @@ import * as Interfaces from '../../generated/telegram-interfaces';

*/
get type(): import("../../types/types").SoftString<Interfaces.TelegramMessageEntityType>;
get type(): import("../../types/types").SoftString<Interfaces.TelegramMessageEntityType> | import("../..").MessageEntityType;
/** Offset in UTF-16 code units to the start of the entity */

@@ -27,0 +27,0 @@ get offset(): number;

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

/// Based on Bot API v6.9.0, 22.09.2023
/// Generation date: 23.09.2023 01:47:08 MSK
/// Generation date: 01.10.2023 23:30:11 MSK
Object.defineProperty(exports, "__esModule", { value: true });

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

/// Based on Bot API v6.9.0, 22.09.2023
/// Generation date: 23.09.2023 01:47:08 MSK
/// Generation date: 01.10.2023 23:30:11 MSK
Object.defineProperty(exports, "__esModule", { value: true });

@@ -91,1 +91,73 @@ export declare enum AttachmentType {

}
export declare enum DiceEmoji {
Dice = "\uD83C\uDFB2",
Dart = "\uD83C\uDFAF",
Basketball = "\uD83C\uDFC0",
Football = "\u26BD",
SlotMachine = "\uD83C\uDFB0",
Bowling = "\uD83C\uDFB3"
}
export declare enum ChatAction {
Typing = "typing",
UploadPhoto = "upload_photo",
RecordVideo = "record_video",
UploadVideo = "upload_video",
RecordVoice = "record_voice",
UploadVoice = "upload_voice",
RecordVideoNote = "record_video_note",
UploadVideoNote = "upload_video_note",
UploadDocument = "upload_document",
ChooseSticker = "choose_sticker",
FindLocation = "find_location"
}
export declare enum ChatMemberStatus {
Creator = "creator",
Administrator = "administrator",
Member = "member",
Restricted = "restricted",
Left = "left",
Kicked = "kicked"
}
export declare enum MessageEntityType {
Mention = "mention",
Hashtag = "hashtag",
Cashtag = "cashtag",
BotCommand = "bot_command",
Url = "url",
Email = "email",
PhoneNumber = "phone_number",
Bold = "bold",
Italic = "italic",
Underline = "underline",
Strikethrough = "strikethrough",
Spoiler = "spoiler",
Code = "code",
Pre = "pre",
TextLink = "text_link",
TextMention = "text_mention",
CustomEmoji = "custom_emoji"
}
export declare enum ParseMode {
Markdown = "Markdown",
MarkdownV2 = "MarkdownV2",
HTML = "HTML"
}
export declare enum StickerFormat {
Static = "static",
Animated = "animated",
Video = "video"
}
export declare enum StickerType {
Regular = "regular",
Mask = "mask",
CustomEmoji = "custom_emoji"
}
export declare enum BotCommandScopeType {
Default = "default",
AllPrivateChats = "all_private_chats",
AllGroupChats = "all_group_chats",
AllChatAdministrators = "all_chat_administrators",
Chat = "chat",
ChatAdministrators = "chat_administrators",
ChatMember = "chat_member"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PollType = exports.ChatType = exports.UpdateType = exports.EntityType = exports.AttachmentType = void 0;
exports.BotCommandScopeType = exports.StickerType = exports.StickerFormat = exports.ParseMode = exports.MessageEntityType = exports.ChatMemberStatus = exports.ChatAction = exports.DiceEmoji = exports.PollType = exports.ChatType = exports.UpdateType = exports.EntityType = exports.AttachmentType = void 0;
var AttachmentType;

@@ -99,1 +99,81 @@ (function (AttachmentType) {

})(PollType = exports.PollType || (exports.PollType = {}));
var DiceEmoji;
(function (DiceEmoji) {
DiceEmoji["Dice"] = "\uD83C\uDFB2";
DiceEmoji["Dart"] = "\uD83C\uDFAF";
DiceEmoji["Basketball"] = "\uD83C\uDFC0";
DiceEmoji["Football"] = "\u26BD";
DiceEmoji["SlotMachine"] = "\uD83C\uDFB0";
DiceEmoji["Bowling"] = "\uD83C\uDFB3";
})(DiceEmoji = exports.DiceEmoji || (exports.DiceEmoji = {}));
var ChatAction;
(function (ChatAction) {
ChatAction["Typing"] = "typing";
ChatAction["UploadPhoto"] = "upload_photo";
ChatAction["RecordVideo"] = "record_video";
ChatAction["UploadVideo"] = "upload_video";
ChatAction["RecordVoice"] = "record_voice";
ChatAction["UploadVoice"] = "upload_voice";
ChatAction["RecordVideoNote"] = "record_video_note";
ChatAction["UploadVideoNote"] = "upload_video_note";
ChatAction["UploadDocument"] = "upload_document";
ChatAction["ChooseSticker"] = "choose_sticker";
ChatAction["FindLocation"] = "find_location";
})(ChatAction = exports.ChatAction || (exports.ChatAction = {}));
var ChatMemberStatus;
(function (ChatMemberStatus) {
ChatMemberStatus["Creator"] = "creator";
ChatMemberStatus["Administrator"] = "administrator";
ChatMemberStatus["Member"] = "member";
ChatMemberStatus["Restricted"] = "restricted";
ChatMemberStatus["Left"] = "left";
ChatMemberStatus["Kicked"] = "kicked";
})(ChatMemberStatus = exports.ChatMemberStatus || (exports.ChatMemberStatus = {}));
var MessageEntityType;
(function (MessageEntityType) {
MessageEntityType["Mention"] = "mention";
MessageEntityType["Hashtag"] = "hashtag";
MessageEntityType["Cashtag"] = "cashtag";
MessageEntityType["BotCommand"] = "bot_command";
MessageEntityType["Url"] = "url";
MessageEntityType["Email"] = "email";
MessageEntityType["PhoneNumber"] = "phone_number";
MessageEntityType["Bold"] = "bold";
MessageEntityType["Italic"] = "italic";
MessageEntityType["Underline"] = "underline";
MessageEntityType["Strikethrough"] = "strikethrough";
MessageEntityType["Spoiler"] = "spoiler";
MessageEntityType["Code"] = "code";
MessageEntityType["Pre"] = "pre";
MessageEntityType["TextLink"] = "text_link";
MessageEntityType["TextMention"] = "text_mention";
MessageEntityType["CustomEmoji"] = "custom_emoji";
})(MessageEntityType = exports.MessageEntityType || (exports.MessageEntityType = {}));
var ParseMode;
(function (ParseMode) {
ParseMode["Markdown"] = "Markdown";
ParseMode["MarkdownV2"] = "MarkdownV2";
ParseMode["HTML"] = "HTML";
})(ParseMode = exports.ParseMode || (exports.ParseMode = {}));
var StickerFormat;
(function (StickerFormat) {
StickerFormat["Static"] = "static";
StickerFormat["Animated"] = "animated";
StickerFormat["Video"] = "video";
})(StickerFormat = exports.StickerFormat || (exports.StickerFormat = {}));
var StickerType;
(function (StickerType) {
StickerType["Regular"] = "regular";
StickerType["Mask"] = "mask";
StickerType["CustomEmoji"] = "custom_emoji";
})(StickerType = exports.StickerType || (exports.StickerType = {}));
var BotCommandScopeType;
(function (BotCommandScopeType) {
BotCommandScopeType["Default"] = "default";
BotCommandScopeType["AllPrivateChats"] = "all_private_chats";
BotCommandScopeType["AllGroupChats"] = "all_group_chats";
BotCommandScopeType["AllChatAdministrators"] = "all_chat_administrators";
BotCommandScopeType["Chat"] = "chat";
BotCommandScopeType["ChatAdministrators"] = "chat_administrators";
BotCommandScopeType["ChatMember"] = "chat_member";
})(BotCommandScopeType = exports.BotCommandScopeType || (exports.BotCommandScopeType = {}));
{
"name": "puregram",
"version": "2.13.2",
"version": "2.14.0",
"description": "powerful and modern telegram bot api sdk for node.js and typescript 😁",

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

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