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

telegraf

Package Overview
Dependencies
Maintainers
3
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegraf - npm Package Compare versions

Comparing version 4.11.0 to 4.11.1-canary.1

lib/update.js

6

package.json
{
"name": "telegraf",
"version": "4.11.0",
"version": "4.11.1-canary.1",
"description": "Modern Telegram Bot Framework",

@@ -23,4 +23,4 @@ "license": "MIT",

"./filters": {
"types": "./typings/filters.d.ts",
"default": "./lib/filters.js"
"types": "./filters.d.ts",
"default": "./filters.js"
},

@@ -27,0 +27,0 @@ "./future": {

@@ -6,9 +6,9 @@ import type { CallbackQuery, CommonMessageBundle, Message, Update } from 'typegram';

export declare type Filter<U extends Update> = (update: Update) => update is U;
export declare const message: <Ks extends ("entities" | "text" | "caption" | "caption_entities" | "animation" | "reply_markup" | "audio" | "document" | "photo" | "sticker" | "video" | "video_note" | "voice" | "poll" | "invoice" | "channel_chat_created" | "connected_website" | "delete_chat_photo" | "group_chat_created" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "supergroup_chat_created" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "media_group_id" | "forward_from" | "forward_from_chat" | "forward_from_message_id" | "forward_signature" | "forward_sender_name" | "forward_date" | "is_automatic_forward" | "reply_to_message" | "via_bot" | "edit_date" | "has_protected_content" | "author_signature" | "contact" | "dice" | "location" | "game" | "venue")[]>(...keys: Ks) => (update: Update) => update is Update.MessageUpdate<Keyed<Message, Ks[number]>>;
export declare const editedMessage: <Ks extends ("entities" | "text" | "caption" | "caption_entities" | "animation" | "audio" | "document" | "photo" | "sticker" | "video" | "video_note" | "voice" | "poll" | "media_group_id" | "contact" | "dice" | "location" | "game" | "venue")[]>(...keys: Ks) => (update: Update) => update is Update.EditedMessageUpdate<Keyed<CommonMessageBundle, Ks[number]>>;
export declare const channelPost: <Ks extends ("entities" | "text" | "caption" | "caption_entities" | "animation" | "reply_markup" | "audio" | "document" | "photo" | "sticker" | "video" | "video_note" | "voice" | "poll" | "invoice" | "channel_chat_created" | "connected_website" | "delete_chat_photo" | "group_chat_created" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "supergroup_chat_created" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "media_group_id" | "forward_from" | "forward_from_chat" | "forward_from_message_id" | "forward_signature" | "forward_sender_name" | "forward_date" | "is_automatic_forward" | "reply_to_message" | "via_bot" | "edit_date" | "has_protected_content" | "author_signature" | "contact" | "dice" | "location" | "game" | "venue")[]>(...keys: Ks) => (update: Update) => update is Update.ChannelPostUpdate<Keyed<Message, Ks[number]>>;
export declare const editedChannelPost: <Ks extends ("entities" | "text" | "caption" | "caption_entities" | "animation" | "audio" | "document" | "photo" | "sticker" | "video" | "video_note" | "voice" | "poll" | "media_group_id" | "contact" | "dice" | "location" | "game" | "venue")[]>(...keys: Ks) => (update: Update) => update is Update.EditedChannelPostUpdate<Keyed<CommonMessageBundle, Ks[number]>>;
export declare const callbackQuery: <Ks extends ("game_short_name" | "data")[]>(...keys: Ks) => (update: Update) => update is Update.CallbackQueryUpdate<Keyed<CallbackQuery, Ks[number]>>;
export declare const message: <Ks extends ("poll" | "channel_chat_created" | "edit_date" | "animation" | "document" | "media_group_id" | "caption" | "caption_entities" | "forward_from" | "supergroup_chat_created" | "group_chat_created" | "delete_chat_photo" | "connected_website" | "invoice" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "forward_from_chat" | "forward_from_message_id" | "forward_signature" | "forward_sender_name" | "forward_date" | "is_automatic_forward" | "reply_to_message" | "via_bot" | "has_protected_content" | "author_signature" | "reply_markup" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "entities" | "venue" | "video" | "video_note" | "voice")[]>(...keys: Ks) => (update: Update) => update is Update.MessageUpdate<Keyed<Message, Ks[number]>>;
export declare const editedMessage: <Ks extends ("poll" | "animation" | "document" | "media_group_id" | "caption" | "caption_entities" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "entities" | "venue" | "video" | "video_note" | "voice")[]>(...keys: Ks) => (update: Update) => update is Update.EditedMessageUpdate<Keyed<CommonMessageBundle, Ks[number]>>;
export declare const channelPost: <Ks extends ("poll" | "channel_chat_created" | "edit_date" | "animation" | "document" | "media_group_id" | "caption" | "caption_entities" | "forward_from" | "supergroup_chat_created" | "group_chat_created" | "delete_chat_photo" | "connected_website" | "invoice" | "left_chat_member" | "message_auto_delete_timer_changed" | "migrate_from_chat_id" | "migrate_to_chat_id" | "new_chat_members" | "new_chat_photo" | "new_chat_title" | "passport_data" | "proximity_alert_triggered" | "forum_topic_created" | "forum_topic_closed" | "forum_topic_reopened" | "pinned_message" | "successful_payment" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "web_app_data" | "forward_from_chat" | "forward_from_message_id" | "forward_signature" | "forward_sender_name" | "forward_date" | "is_automatic_forward" | "reply_to_message" | "via_bot" | "has_protected_content" | "author_signature" | "reply_markup" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "entities" | "venue" | "video" | "video_note" | "voice")[]>(...keys: Ks) => (update: Update) => update is Update.ChannelPostUpdate<Keyed<Message, Ks[number]>>;
export declare const editedChannelPost: <Ks extends ("poll" | "animation" | "document" | "media_group_id" | "caption" | "caption_entities" | "audio" | "contact" | "dice" | "game" | "location" | "photo" | "sticker" | "text" | "entities" | "venue" | "video" | "video_note" | "voice")[]>(...keys: Ks) => (update: Update) => update is Update.EditedChannelPostUpdate<Keyed<CommonMessageBundle, Ks[number]>>;
export declare const callbackQuery: <Ks extends ("data" | "game_short_name")[]>(...keys: Ks) => (update: Update) => update is Update.CallbackQueryUpdate<Keyed<CallbackQuery, Ks[number]>>;
export declare const either: <Us extends Update[]>(...filters: { [UIdx in keyof Us]: Filter<Us[UIdx]>; }) => (update: Update) => update is Us[number];
export {};
//# sourceMappingURL=filters.d.ts.map
import { User } from 'typegram';
import { FmtString } from './core/helpers/formatting';
export { FmtString };
export declare const fmt: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const bold: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const italic: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const spoiler: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const strikethrough: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const underline: (parts: string | TemplateStringsArray | string[], ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const code: (parts: string | TemplateStringsArray | string[], ...items: ({} | null | undefined)[]) => FmtString;
export declare const pre: (language: string) => (parts: string | TemplateStringsArray | string[], ...items: ({} | null | undefined)[]) => FmtString;
export declare const fmt: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const bold: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const italic: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const spoiler: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const strikethrough: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const underline: (parts: string | string[] | TemplateStringsArray, ...items: (FmtString | ({} | null | undefined))[]) => FmtString;
export declare const code: (parts: string | string[] | TemplateStringsArray, ...items: ({} | null | undefined)[]) => FmtString;
export declare const pre: (language: string) => (parts: string | string[] | TemplateStringsArray, ...items: ({} | null | undefined)[]) => FmtString;
export declare const link: (content: string | FmtString, url: string) => FmtString;
export declare const mention: (name: string | FmtString, user: number | User) => FmtString;
//# sourceMappingURL=format.d.ts.map
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