@mtcute/core 0.16.13 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/chunks/cjs/{CntZHjXA.js → BcdQkLTS.js} +83 -15
  2. package/chunks/cjs/{chPq0GcA.js → CSfUPcui.js} +914 -796
  3. package/chunks/cjs/{BO3RV06t.js → kxT7E_JE.js} +3 -3
  4. package/chunks/es/{xihQcMp0.js → BJRm2PAH.js} +3 -3
  5. package/chunks/es/{Jz_hDg6M.js → CbXFWEiB.js} +83 -15
  6. package/chunks/es/{Btmu4f4t.js → DKzd1_Yg.js} +914 -796
  7. package/client.cjs +21 -9
  8. package/client.js +21 -9
  9. package/highlevel/client.d.ts +109 -25
  10. package/highlevel/methods/files/upload-file.d.ts +8 -0
  11. package/highlevel/methods/premium/accept-star-gift.d.ts +16 -0
  12. package/highlevel/methods/premium/get-star-gift-options.d.ts +6 -0
  13. package/highlevel/methods/premium/get-star-gifts.d.ts +22 -0
  14. package/highlevel/methods/premium/iter-star-gifts.d.ts +26 -0
  15. package/highlevel/methods/premium/send-star-gift.d.ts +35 -0
  16. package/highlevel/methods/stickers/create-sticker-set.d.ts +1 -7
  17. package/highlevel/methods.d.ts +5 -1
  18. package/highlevel/types/bots/keyboards/factories.d.ts +7 -0
  19. package/highlevel/types/media/video.d.ts +1 -0
  20. package/highlevel/types/messages/message-action.d.ts +19 -2
  21. package/highlevel/types/misc/sticker-set.d.ts +1 -5
  22. package/highlevel/types/premium/index.d.ts +1 -0
  23. package/highlevel/types/premium/stars-gift.d.ts +57 -0
  24. package/highlevel/types/premium/stars-transaction.d.ts +8 -0
  25. package/index.cjs +5 -3
  26. package/index.js +7 -5
  27. package/methods.cjs +7 -3
  28. package/methods.js +7 -3
  29. package/network/client.d.ts +1 -1
  30. package/network/multi-session-connection.d.ts +1 -1
  31. package/network/persistent-connection.d.ts +1 -1
  32. package/network/transports/abstract.d.ts +1 -1
  33. package/network/transports/streamed.d.ts +1 -1
  34. package/network/transports/wrapped.d.ts +1 -1
  35. package/package.json +4 -4
  36. package/highlevel/methods/stories/report-story.d.ts +0 -19
package/client.cjs CHANGED
@@ -5,9 +5,9 @@ if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WAR
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- const EventEmitter = require("node:events");
8
+ const EventEmitter = require("events");
9
9
  const tl = require("@mtcute/tl");
10
- const client = require("./chunks/cjs/BO3RV06t.js");
10
+ const client = require("./chunks/cjs/kxT7E_JE.js");
11
11
  const platform = require("./chunks/cjs/j7rWn_1y.js");
12
12
  const sortedArray = require("./chunks/cjs/C1cFqHcW.js");
13
13
  const logger = require("./chunks/cjs/D4qcXFYA.js");
@@ -15,12 +15,12 @@ const controllablePromise = require("./chunks/cjs/CZAB54t2.js");
15
15
  require("@mtcute/tl-runtime");
16
16
  const tlJson = require("./chunks/cjs/BQETTb_8.js");
17
17
  const conditionVariable = require("./chunks/cjs/eX3zeDAz.js");
18
- const storyViewer = require("./chunks/cjs/chPq0GcA.js");
19
- const updateProfile = require("./chunks/cjs/CntZHjXA.js");
18
+ const storyViewer = require("./chunks/cjs/CSfUPcui.js");
19
+ const updateProfile = require("./chunks/cjs/BcdQkLTS.js");
20
20
  function reportUnknownError(log, error, method) {
21
21
  if (typeof fetch !== "function") return;
22
- fetch(`https://rpc.pwrtelegram.xyz/?code=${error.code}&method=${method}&error=${error.text}`).then((r) => r.json()).then((r) => {
23
- if (r.ok) {
22
+ fetch(`https://report-rpc-error.madelineproto.xyz/?code=${error.code}&method=${method}&error=${error.text}`).then((r) => r.json()).then((r) => {
23
+ if (r.result) {
24
24
  log.info("telerpc responded with error info for %s: %s", error.text, r.result);
25
25
  } else {
26
26
  log.info(
@@ -1080,6 +1080,9 @@ TelegramClient.prototype.cancelPasswordEmail = function(...args) {
1080
1080
  TelegramClient.prototype.removeCloudPassword = function(...args) {
1081
1081
  return updateProfile.removeCloudPassword(this._client, ...args);
1082
1082
  };
1083
+ TelegramClient.prototype.acceptStarGift = function(...args) {
1084
+ return updateProfile.acceptStarGift(this._client, ...args);
1085
+ };
1083
1086
  TelegramClient.prototype.applyBoost = function(...args) {
1084
1087
  return updateProfile.applyBoost(this._client, ...args);
1085
1088
  };
@@ -1110,15 +1113,27 @@ TelegramClient.prototype.getBusinessConnection = function(...args) {
1110
1113
  TelegramClient.prototype.getMyBoostSlots = function(...args) {
1111
1114
  return updateProfile.getMyBoostSlots(this._client, ...args);
1112
1115
  };
1116
+ TelegramClient.prototype.getStarGiftOptions = function(...args) {
1117
+ return updateProfile.getStarGiftOptions(this._client, ...args);
1118
+ };
1119
+ TelegramClient.prototype.getStarGifts = function(...args) {
1120
+ return updateProfile.getStarGifts(this._client, ...args);
1121
+ };
1113
1122
  TelegramClient.prototype.getStarsTransactions = function(...args) {
1114
1123
  return updateProfile.getStarsTransactions(this._client, ...args);
1115
1124
  };
1116
1125
  TelegramClient.prototype.iterBoosters = function(...args) {
1117
1126
  return updateProfile.iterBoosters(this._client, ...args);
1118
1127
  };
1128
+ TelegramClient.prototype.iterStarGifts = function(...args) {
1129
+ return updateProfile.iterStarGifts(this._client, ...args);
1130
+ };
1119
1131
  TelegramClient.prototype.iterStarsTransactions = function(...args) {
1120
1132
  return updateProfile.iterStarsTransactions(this._client, ...args);
1121
1133
  };
1134
+ TelegramClient.prototype.sendStarGift = function(...args) {
1135
+ return updateProfile.sendStarGift(this._client, ...args);
1136
+ };
1122
1137
  TelegramClient.prototype.setBusinessIntro = function(...args) {
1123
1138
  return updateProfile.setBusinessIntro(this._client, ...args);
1124
1139
  };
@@ -1209,9 +1224,6 @@ TelegramClient.prototype.iterStoryViewers = function(...args) {
1209
1224
  TelegramClient.prototype.readStories = function(...args) {
1210
1225
  return updateProfile.readStories(this._client, ...args);
1211
1226
  };
1212
- TelegramClient.prototype.reportStory = function(...args) {
1213
- return updateProfile.reportStory(this._client, ...args);
1214
- };
1215
1227
  TelegramClient.prototype.sendStoryReaction = function(...args) {
1216
1228
  return updateProfile.sendStoryReaction(this._client, ...args);
1217
1229
  };
package/client.js CHANGED
@@ -1,6 +1,6 @@
1
- import EventEmitter from "node:events";
1
+ import EventEmitter from "events";
2
2
  import { tl } from "@mtcute/tl";
3
- import { Reloadable, MtClient, UpdatesManager, TelegramStorageManager, BusinessCallbackQuery$2, DeleteBusinessMessageUpdate$2, BusinessMessage, BotReactionCountUpdate$2, BotReactionUpdate$2, DeleteStoryUpdate$2, StoryUpdate$2, PreCheckoutQuery$2, ChatJoinRequestUpdate$2, BotChatJoinRequestUpdate$2, BotStoppedUpdate$2, HistoryReadUpdate$1, DeleteMessageUpdate$1, UserTypingUpdate$1, UserStatusUpdate$2, PollVoteUpdate$2, PollUpdate$2, InlineCallbackQuery$2, CallbackQuery$2, ChosenInlineResult$2, InlineQuery$2, ChatMemberUpdate$2, Conversation } from "./chunks/es/xihQcMp0.js";
3
+ import { Reloadable, MtClient, UpdatesManager, TelegramStorageManager, BusinessCallbackQuery$2, DeleteBusinessMessageUpdate$2, BusinessMessage, BotReactionCountUpdate$2, BotReactionUpdate$2, DeleteStoryUpdate$2, StoryUpdate$2, PreCheckoutQuery$2, ChatJoinRequestUpdate$2, BotChatJoinRequestUpdate$2, BotStoppedUpdate$2, HistoryReadUpdate$1, DeleteMessageUpdate$1, UserTypingUpdate$1, UserStatusUpdate$2, PollVoteUpdate$2, PollUpdate$2, InlineCallbackQuery$2, CallbackQuery$2, ChosenInlineResult$2, InlineQuery$2, ChatMemberUpdate$2, Conversation } from "./chunks/es/BJRm2PAH.js";
4
4
  import { MtTypeAssertionError, MtArgumentError, MtUnsupportedError } from "./chunks/es/DBMBgE7t.js";
5
5
  import { asyncResettable } from "./chunks/es/CO4G3ySK.js";
6
6
  import { LogManager } from "./chunks/es/BRgz_-S8.js";
@@ -8,12 +8,12 @@ import { isTlRpcError } from "./chunks/es/BN3qj7tU.js";
8
8
  import "@mtcute/tl-runtime";
9
9
  import { tlJsonToJson, readStringSession, writeStringSession, computeSrpParams, computeNewPasswordHash } from "./chunks/es/hecWgeql.js";
10
10
  import { setTimeoutWrap } from "./chunks/es/DY1E3mHM.js";
11
- import { BusinessConnection$2, Message$2, getPeerDialogs, _normalizeInputFile, _normalizeInputMedia, uploadFile, getDiscussionMessage, getMessages, readHistory, sendMediaGroup, sendMedia, sendText, getBusinessConnection, resolvePeerMany, resolvePeer, resolveUser, resolveChannel } from "./chunks/es/Btmu4f4t.js";
12
- import { checkPassword, getPasswordHint, logOut, recoverPassword, resendCode, run, sendCode, sendRecoveryCode, signInBot, signInQr, signIn, startTest, start, isSelfPeer, answerCallbackQuery, answerInlineQuery, answerPreCheckoutQuery, deleteMyCommands, getBotInfo, getBotMenuButton, getCallbackAnswer, getGameHighScores, getInlineGameHighScores, getMyCommands, setBotInfo, setBotMenuButton, setGameScore, setInlineGameScore, setMyCommands, setMyDefaultRights, addChatMembers, archiveChats, banChatMember, createChannel, createGroup, createSupergroup, deleteChannel, deleteChatPhoto, deleteGroup, deleteHistory, deleteUserHistory, editAdminRights, getChatEventLog, getChatMember, getChatMembers, getChatPreview, getChat, getFullChat, getNearbyChats, getSimilarChannels, iterChatEventLog, iterChatMembers, joinChat, kickChatMember, leaveChat, markChatUnread, openChat, closeChat, reorderUsernames, restrictChatMember, saveDraft, setChatColor, setChatDefaultPermissions, setChatDescription, setChatPhoto, setChatTitle, setChatTtl, setChatUsername, setSlowMode, toggleContentProtection, toggleFragmentUsername, toggleJoinRequests, toggleJoinToSend, unarchiveChats, unbanChatMember, addContact, deleteContacts, getContacts, importContacts, createFolder, deleteFolder, editFolder, findDialogs, findFolder, getChatlistPreview, getFolders, iterDialogs, joinChatlist, setFoldersOrder, downloadAsBuffer, downloadAsIterable, downloadAsStream, uploadMedia, createForumTopic, deleteForumTopicHistory, editForumTopic, getForumTopicsById, getForumTopics, iterForumTopics, reorderPinnedForumTopics, toggleForumTopicClosed, toggleForumTopicPinned, toggleForum, toggleGeneralTopicHidden, createInviteLink, editInviteLink, exportInviteLink, getInviteLinkMembers, getInviteLink, getInviteLinks, getPrimaryInviteLink, hideAllJoinRequests, hideJoinRequest, iterInviteLinkMembers, iterInviteLinks, revokeInviteLink, closePoll, deleteMessagesById, deleteMessages, deleteScheduledMessages, editInlineMessage, editMessage, forwardMessagesById, forwardMessages, getAllScheduledMessages, getAvailableMessageEffects, getCallbackQueryMessage, getFactCheck, getHistory, getMessageByLink, getMessageGroup, getMessageReactionsById, getMessageReactions, getMessagesUnsafe, getReactionUsers, getReplyTo, getScheduledMessages, iterHistory, iterReactionUsers, iterSearchGlobal, iterSearchMessages, pinMessage, readReactions, searchGlobal, searchHashtag, iterSearchHashtag, searchMessages, answerText, answerMedia, answerMediaGroup, commentText, commentMedia, commentMediaGroup, sendCopyGroup, sendCopy, sendPaidReaction, quoteWithText, quoteWithMedia, quoteWithMediaGroup, sendReaction, replyText, replyMedia, replyMediaGroup, sendScheduled, sendTyping, sendVote, translateMessage, translateText, unpinAllMessages, unpinMessage, getCollectibleInfo, initTakeoutSession, _normalizePrivacyRules, changeCloudPassword, enableCloudPassword, verifyPasswordEmail, resendPasswordEmail, cancelPasswordEmail, removeCloudPassword, applyBoost, canApplyBoost, createBusinessChatLink, editBusinessChatLink, deleteBusinessChatLink, getBoostStats, getBoosts, getBusinessChatLinks, getMyBoostSlots, getStarsTransactions, iterBoosters, iterStarsTransactions, setBusinessIntro, setBusinessWorkHours, addStickerToSet, createStickerSet, deleteStickerFromSet, getCustomEmojis, getCustomEmojisFromMessages, getInstalledStickers, getMyStickerSets, getStickerSet, moveStickerInSet, replaceStickerInSet, setChatStickerSet, setStickerSetThumb, canSendStory, deleteStories, editStory, getAllStories, getPeerStories, getProfileStories, getStoriesById, getStoriesInteractions, getStoryLink, getStoryViewers, hideMyStoriesViews, incrementStoriesViews, iterAllStories, iterProfileStories, iterStoryViewers, readStories, reportStory, sendStoryReaction, sendStory, togglePeerStoriesArchived, toggleStoriesPinned, blockUser, deleteProfilePhotos, editCloseFriendsRaw, editCloseFriends, getCommonChats, getGlobalTtl, getMe, getMyUsername, getProfilePhoto, getProfilePhotos, getUsers, isPeerAvailable, iterProfilePhotos, setGlobalTtl, setMyBirthday, setMyEmojiStatus, setMyProfilePhoto, setMyUsername, setOffline, unblockUser, updateProfile } from "./chunks/es/Jz_hDg6M.js";
11
+ import { BusinessConnection$2, Message$2, getPeerDialogs, _normalizeInputFile, _normalizeInputMedia, uploadFile, getDiscussionMessage, getMessages, readHistory, sendMediaGroup, sendMedia, sendText, getBusinessConnection, resolvePeerMany, resolvePeer, resolveUser, resolveChannel } from "./chunks/es/DKzd1_Yg.js";
12
+ import { checkPassword, getPasswordHint, logOut, recoverPassword, resendCode, run, sendCode, sendRecoveryCode, signInBot, signInQr, signIn, startTest, start, isSelfPeer, answerCallbackQuery, answerInlineQuery, answerPreCheckoutQuery, deleteMyCommands, getBotInfo, getBotMenuButton, getCallbackAnswer, getGameHighScores, getInlineGameHighScores, getMyCommands, setBotInfo, setBotMenuButton, setGameScore, setInlineGameScore, setMyCommands, setMyDefaultRights, addChatMembers, archiveChats, banChatMember, createChannel, createGroup, createSupergroup, deleteChannel, deleteChatPhoto, deleteGroup, deleteHistory, deleteUserHistory, editAdminRights, getChatEventLog, getChatMember, getChatMembers, getChatPreview, getChat, getFullChat, getNearbyChats, getSimilarChannels, iterChatEventLog, iterChatMembers, joinChat, kickChatMember, leaveChat, markChatUnread, openChat, closeChat, reorderUsernames, restrictChatMember, saveDraft, setChatColor, setChatDefaultPermissions, setChatDescription, setChatPhoto, setChatTitle, setChatTtl, setChatUsername, setSlowMode, toggleContentProtection, toggleFragmentUsername, toggleJoinRequests, toggleJoinToSend, unarchiveChats, unbanChatMember, addContact, deleteContacts, getContacts, importContacts, createFolder, deleteFolder, editFolder, findDialogs, findFolder, getChatlistPreview, getFolders, iterDialogs, joinChatlist, setFoldersOrder, downloadAsBuffer, downloadAsIterable, downloadAsStream, uploadMedia, createForumTopic, deleteForumTopicHistory, editForumTopic, getForumTopicsById, getForumTopics, iterForumTopics, reorderPinnedForumTopics, toggleForumTopicClosed, toggleForumTopicPinned, toggleForum, toggleGeneralTopicHidden, createInviteLink, editInviteLink, exportInviteLink, getInviteLinkMembers, getInviteLink, getInviteLinks, getPrimaryInviteLink, hideAllJoinRequests, hideJoinRequest, iterInviteLinkMembers, iterInviteLinks, revokeInviteLink, closePoll, deleteMessagesById, deleteMessages, deleteScheduledMessages, editInlineMessage, editMessage, forwardMessagesById, forwardMessages, getAllScheduledMessages, getAvailableMessageEffects, getCallbackQueryMessage, getFactCheck, getHistory, getMessageByLink, getMessageGroup, getMessageReactionsById, getMessageReactions, getMessagesUnsafe, getReactionUsers, getReplyTo, getScheduledMessages, iterHistory, iterReactionUsers, iterSearchGlobal, iterSearchMessages, pinMessage, readReactions, searchGlobal, searchHashtag, iterSearchHashtag, searchMessages, answerText, answerMedia, answerMediaGroup, commentText, commentMedia, commentMediaGroup, sendCopyGroup, sendCopy, sendPaidReaction, quoteWithText, quoteWithMedia, quoteWithMediaGroup, sendReaction, replyText, replyMedia, replyMediaGroup, sendScheduled, sendTyping, sendVote, translateMessage, translateText, unpinAllMessages, unpinMessage, getCollectibleInfo, initTakeoutSession, _normalizePrivacyRules, changeCloudPassword, enableCloudPassword, verifyPasswordEmail, resendPasswordEmail, cancelPasswordEmail, removeCloudPassword, acceptStarGift, applyBoost, canApplyBoost, createBusinessChatLink, editBusinessChatLink, deleteBusinessChatLink, getBoostStats, getBoosts, getBusinessChatLinks, getMyBoostSlots, getStarGiftOptions, getStarGifts, getStarsTransactions, iterBoosters, iterStarGifts, iterStarsTransactions, sendStarGift, setBusinessIntro, setBusinessWorkHours, addStickerToSet, createStickerSet, deleteStickerFromSet, getCustomEmojis, getCustomEmojisFromMessages, getInstalledStickers, getMyStickerSets, getStickerSet, moveStickerInSet, replaceStickerInSet, setChatStickerSet, setStickerSetThumb, canSendStory, deleteStories, editStory, getAllStories, getPeerStories, getProfileStories, getStoriesById, getStoriesInteractions, getStoryLink, getStoryViewers, hideMyStoriesViews, incrementStoriesViews, iterAllStories, iterProfileStories, iterStoryViewers, readStories, sendStoryReaction, sendStory, togglePeerStoriesArchived, toggleStoriesPinned, blockUser, deleteProfilePhotos, editCloseFriendsRaw, editCloseFriends, getCommonChats, getGlobalTtl, getMe, getMyUsername, getProfilePhoto, getProfilePhotos, getUsers, isPeerAvailable, iterProfilePhotos, setGlobalTtl, setMyBirthday, setMyEmojiStatus, setMyProfilePhoto, setMyUsername, setOffline, unblockUser, updateProfile } from "./chunks/es/CbXFWEiB.js";
13
13
  function reportUnknownError(log, error, method) {
14
14
  if (typeof fetch !== "function") return;
15
- fetch(`https://rpc.pwrtelegram.xyz/?code=${error.code}&method=${method}&error=${error.text}`).then((r) => r.json()).then((r) => {
16
- if (r.ok) {
15
+ fetch(`https://report-rpc-error.madelineproto.xyz/?code=${error.code}&method=${method}&error=${error.text}`).then((r) => r.json()).then((r) => {
16
+ if (r.result) {
17
17
  log.info("telerpc responded with error info for %s: %s", error.text, r.result);
18
18
  } else {
19
19
  log.info(
@@ -1073,6 +1073,9 @@ TelegramClient.prototype.cancelPasswordEmail = function(...args) {
1073
1073
  TelegramClient.prototype.removeCloudPassword = function(...args) {
1074
1074
  return removeCloudPassword(this._client, ...args);
1075
1075
  };
1076
+ TelegramClient.prototype.acceptStarGift = function(...args) {
1077
+ return acceptStarGift(this._client, ...args);
1078
+ };
1076
1079
  TelegramClient.prototype.applyBoost = function(...args) {
1077
1080
  return applyBoost(this._client, ...args);
1078
1081
  };
@@ -1103,15 +1106,27 @@ TelegramClient.prototype.getBusinessConnection = function(...args) {
1103
1106
  TelegramClient.prototype.getMyBoostSlots = function(...args) {
1104
1107
  return getMyBoostSlots(this._client, ...args);
1105
1108
  };
1109
+ TelegramClient.prototype.getStarGiftOptions = function(...args) {
1110
+ return getStarGiftOptions(this._client, ...args);
1111
+ };
1112
+ TelegramClient.prototype.getStarGifts = function(...args) {
1113
+ return getStarGifts(this._client, ...args);
1114
+ };
1106
1115
  TelegramClient.prototype.getStarsTransactions = function(...args) {
1107
1116
  return getStarsTransactions(this._client, ...args);
1108
1117
  };
1109
1118
  TelegramClient.prototype.iterBoosters = function(...args) {
1110
1119
  return iterBoosters(this._client, ...args);
1111
1120
  };
1121
+ TelegramClient.prototype.iterStarGifts = function(...args) {
1122
+ return iterStarGifts(this._client, ...args);
1123
+ };
1112
1124
  TelegramClient.prototype.iterStarsTransactions = function(...args) {
1113
1125
  return iterStarsTransactions(this._client, ...args);
1114
1126
  };
1127
+ TelegramClient.prototype.sendStarGift = function(...args) {
1128
+ return sendStarGift(this._client, ...args);
1129
+ };
1115
1130
  TelegramClient.prototype.setBusinessIntro = function(...args) {
1116
1131
  return setBusinessIntro(this._client, ...args);
1117
1132
  };
@@ -1202,9 +1217,6 @@ TelegramClient.prototype.iterStoryViewers = function(...args) {
1202
1217
  TelegramClient.prototype.readStories = function(...args) {
1203
1218
  return readStories(this._client, ...args);
1204
1219
  };
1205
- TelegramClient.prototype.reportStory = function(...args) {
1206
- return reportStory(this._client, ...args);
1207
- };
1208
1220
  TelegramClient.prototype.sendStoryReaction = function(...args) {
1209
1221
  return sendStoryReaction(this._client, ...args);
1210
1222
  };
@@ -1,4 +1,4 @@
1
- import { default as EventEmitter } from 'node:events';
1
+ import { default as EventEmitter } from 'events';
2
2
  import { default as Long } from 'long';
3
3
  import { tdFileId } from '@mtcute/file-id';
4
4
  import { tl } from '@mtcute/tl';
@@ -6,7 +6,7 @@ import { RpcCallOptions } from '../network/index.js';
6
6
  import { MaybeArray, MaybePromise, PartialExcept, PartialOnly } from '../types/index.js';
7
7
  import { BaseTelegramClientOptions } from './base.js';
8
8
  import { ITelegramClient } from './client.types.js';
9
- import { AllStories, ArrayPaginated, ArrayWithTotal, Boost, BoostSlot, BoostStats, BotChatJoinRequestUpdate, BotCommands, BotReactionCountUpdate, BotReactionUpdate, BotStoppedUpdate, BusinessCallbackQuery, BusinessChatLink, BusinessConnection, BusinessMessage, BusinessWorkHoursDay, CallbackQuery, Chat, ChatEvent, ChatInviteLink, ChatInviteLinkMember, ChatJoinRequestUpdate, ChatMember, ChatMemberUpdate, ChatPreview, ChatlistPreview, ChosenInlineResult, CollectibleInfo, DeleteBusinessMessageUpdate, DeleteMessageUpdate, DeleteStoryUpdate, Dialog, FactCheck, FileDownloadLocation, FileDownloadParameters, ForumTopic, FullChat, GameHighScore, HistoryReadUpdate, InlineCallbackQuery, InlineQuery, InputChatEventFilters, InputDialogFolder, InputFileLike, InputInlineResult, InputMediaLike, InputMediaSticker, InputMessageId, InputPeerLike, InputPrivacyRule, InputReaction, InputStickerSet, InputStickerSetItem, InputText, MaybeDynamic, Message, MessageEffect, MessageMedia, MessageReactions, ParametersSkip2, ParsedUpdate, PeerReaction, PeerStories, PeersIndex, Photo, Poll, PollUpdate, PollVoteUpdate, PreCheckoutQuery, RawDocument, ReplyMarkup, SentCode, StarsStatus, StarsTransaction, Sticker, StickerSet, StickerSourceType, StickerType, StoriesStealthMode, Story, StoryInteractions, StoryUpdate, StoryViewer, StoryViewersList, TakeoutSession, TextWithEntities, TypingStatus, UploadFileLike, UploadedFile, User, UserStatusUpdate, UserTypingUpdate } from './types/index.js';
9
+ import { AllStories, ArrayPaginated, ArrayWithTotal, Boost, BoostSlot, BoostStats, BotChatJoinRequestUpdate, BotCommands, BotReactionCountUpdate, BotReactionUpdate, BotStoppedUpdate, BusinessCallbackQuery, BusinessChatLink, BusinessConnection, BusinessMessage, BusinessWorkHoursDay, CallbackQuery, Chat, ChatEvent, ChatInviteLink, ChatInviteLinkMember, ChatJoinRequestUpdate, ChatMember, ChatMemberUpdate, ChatPreview, ChatlistPreview, ChosenInlineResult, CollectibleInfo, DeleteBusinessMessageUpdate, DeleteMessageUpdate, DeleteStoryUpdate, Dialog, FactCheck, FileDownloadLocation, FileDownloadParameters, ForumTopic, FullChat, GameHighScore, HistoryReadUpdate, InlineCallbackQuery, InlineQuery, InputChatEventFilters, InputDialogFolder, InputFileLike, InputInlineResult, InputMediaLike, InputMediaSticker, InputMessageId, InputPeerLike, InputPrivacyRule, InputReaction, InputStickerSet, InputStickerSetItem, InputText, MaybeDynamic, Message, MessageEffect, MessageMedia, MessageReactions, ParametersSkip2, ParsedUpdate, PeerReaction, PeerStories, PeersIndex, Photo, Poll, PollUpdate, PollVoteUpdate, PreCheckoutQuery, RawDocument, ReplyMarkup, SentCode, StarGift, StarsStatus, StarsTransaction, Sticker, StickerSet, StickerType, StoriesStealthMode, Story, StoryInteractions, StoryUpdate, StoryViewer, StoryViewersList, TakeoutSession, TextWithEntities, TypingStatus, UploadFileLike, UploadedFile, User, UserStarGift, UserStatusUpdate, UserTypingUpdate } from './types/index.js';
10
10
  import { StringSessionData } from './utils/string-session.js';
11
11
  import { ITelegramStorageProvider } from './storage/provider.js';
12
12
  import { ParsedUpdateHandlerParams } from './updates/parsed.js';
@@ -34,6 +34,7 @@ import { QuoteParamsFrom } from './methods/messages/send-quote.js';
34
34
  import { sendText } from './methods/messages/send-text.js';
35
35
  import { CanApplyBoostResult } from './methods/premium/can-apply-boost.js';
36
36
  import { getBoosts } from './methods/premium/get-boosts.js';
37
+ import { getStarGifts } from './methods/premium/get-star-gifts.js';
37
38
  import { getStarsTransactions } from './methods/premium/get-stars-transactions.js';
38
39
  import { CanSendStoryResult } from './methods/stories/can-send-story.js';
39
40
  import { getAllStories } from './methods/stories/get-all-stories.js';
@@ -2119,6 +2120,14 @@ export interface TelegramClient extends ITelegramClient {
2119
2120
  * the stream will be buffered in memory and the file size will be inferred from the buffer.
2120
2121
  */
2121
2122
  requireFileSize?: boolean;
2123
+ /**
2124
+ * When using `inputMediaUploadedPhoto` (e.g. when sending an uploaded photo) require
2125
+ * the file extension to be known beforehand.
2126
+ *
2127
+ * This will make the library try to guess the file extension from the file mime type,
2128
+ * or throw an error if it cannot be guessed.
2129
+ */
2130
+ requireExtension?: boolean;
2122
2131
  }): Promise<UploadedFile>;
2123
2132
  /**
2124
2133
  * Upload a media to Telegram servers, without actually
@@ -3788,6 +3797,22 @@ export interface TelegramClient extends ITelegramClient {
3788
3797
  * @param password 2FA password as plaintext
3789
3798
  */
3790
3799
  removeCloudPassword(password: string): Promise<void>;
3800
+ /**
3801
+ * Accept, hide or convert a star gift.
3802
+ *
3803
+ * **Available**: 👤 users only
3804
+ *
3805
+ * @returns Whether the action was successful
3806
+ */
3807
+ acceptStarGift(params: InputMessageId & {
3808
+ /**
3809
+ * Action to perform on the gift.
3810
+ * - `save` - save the gift to your profile
3811
+ * - `hide` - hide the gift from your profile
3812
+ * - `convert` - convert the gift to stars (can't be undone)
3813
+ */
3814
+ action: 'save' | 'hide' | 'convert';
3815
+ }): Promise<boolean>;
3791
3816
  /**
3792
3817
  * Boost a given channel
3793
3818
  *
@@ -3891,6 +3916,32 @@ export interface TelegramClient extends ITelegramClient {
3891
3916
  *
3892
3917
  */
3893
3918
  getMyBoostSlots(): Promise<BoostSlot[]>;
3919
+ /**
3920
+ * Get the list of available star gifts.
3921
+ * **Available**: 👤 users only
3922
+ *
3923
+ */
3924
+ getStarGiftOptions(): Promise<StarGift[]>;
3925
+ /**
3926
+ * Get a list of gifts sent to a user.
3927
+ *
3928
+ * **Available**: 👤 users only
3929
+ *
3930
+ * @param userId User whose gifts to fetch
3931
+ * @returns Gifts sent to the user
3932
+ */
3933
+ getStarGifts(userId: InputPeerLike, params?: {
3934
+ /**
3935
+ * Offset for pagination.
3936
+ */
3937
+ offset?: string;
3938
+ /**
3939
+ * Maximum number of gifts to fetch.
3940
+ *
3941
+ * @default 100
3942
+ */
3943
+ limit?: number;
3944
+ }): Promise<ArrayPaginated<UserStarGift, string>>;
3894
3945
  /**
3895
3946
  * Get Telegram Stars transactions for a given peer.
3896
3947
  *
@@ -3946,6 +3997,31 @@ export interface TelegramClient extends ITelegramClient {
3946
3997
  */
3947
3998
  chunkSize?: number;
3948
3999
  }): AsyncIterableIterator<Boost>;
4000
+ /**
4001
+ * Iterate over gifts sent to a given user.
4002
+ *
4003
+ * Wrapper over {@link getStarGifts}
4004
+ *
4005
+ * **Available**: 👤 users only
4006
+ *
4007
+ * @param peerId Peer ID
4008
+ * @param params Additional parameters
4009
+ */
4010
+ iterStarGifts(peerId: InputPeerLike, params?: Parameters<typeof getStarGifts>[2] & {
4011
+ /**
4012
+ * Total number of gifts to fetch
4013
+ *
4014
+ * @default Infinity, i.e. fetch all gifts
4015
+ */
4016
+ limit?: number;
4017
+ /**
4018
+ * Number of gifts to fetch per request
4019
+ * Usually you don't need to change this
4020
+ *
4021
+ * @default 100
4022
+ */
4023
+ chunkSize?: number;
4024
+ }): AsyncIterableIterator<UserStarGift>;
3949
4025
  /**
3950
4026
  * Iterate over Telegram Stars transactions for a given peer.
3951
4027
  *
@@ -3974,6 +4050,37 @@ export interface TelegramClient extends ITelegramClient {
3974
4050
  */
3975
4051
  chunkSize?: number;
3976
4052
  }): AsyncIterableIterator<StarsTransaction>;
4053
+ /**
4054
+ * Send a star gift to a user.
4055
+ *
4056
+ * > **Note**: this method is not indended to be used by full-fledged clients,
4057
+ * > as this method hides the actual invoice and payment form from the user.
4058
+ * > For GUI clients, you should refer to the method's source code and
4059
+ * > present the payment form to the user.
4060
+ *
4061
+ * **Available**: 👤 users only
4062
+ *
4063
+ * @returns Service message about the sent gift
4064
+ */
4065
+ sendStarGift(params: {
4066
+ /** ID of the user to send the gift to */
4067
+ userId: InputPeerLike;
4068
+ /** ID of the gift to send */
4069
+ gift: Long | StarGift;
4070
+ /**
4071
+ * Whether to send the gift anonymously
4072
+ * (i.e. if the recipient chooses to display the gift
4073
+ * on their profile, your name won't be visible)
4074
+ */
4075
+ anonymous?: boolean;
4076
+ /** Message to send along with the gift */
4077
+ message?: InputText;
4078
+ /**
4079
+ * Whether to dispatch the new message event
4080
+ * to the client's update handler.
4081
+ */
4082
+ shouldDispatch?: true;
4083
+ }): Promise<Message>;
3977
4084
  /**
3978
4085
  * Set current user's business introduction.
3979
4086
  *
@@ -4067,12 +4174,6 @@ export interface TelegramClient extends ITelegramClient {
4067
4174
  * @default `sticker`, i.e. regular stickers.
4068
4175
  */
4069
4176
  type?: StickerType;
4070
- /**
4071
- * File source type for the stickers in this set.
4072
- *
4073
- * @default `static`, i.e. regular WEBP stickers.
4074
- */
4075
- sourceType?: StickerSourceType;
4076
4177
  /**
4077
4178
  * Whether to create "adaptive" emoji set.
4078
4179
  *
@@ -4505,23 +4606,6 @@ export interface TelegramClient extends ITelegramClient {
4505
4606
  * @returns IDs of the stores that were marked as read
4506
4607
  */
4507
4608
  readStories(peerId: InputPeerLike, maxId: number): Promise<number[]>;
4508
- /**
4509
- * Report a story (or multiple stories) to the moderation team
4510
- * **Available**: 👤 users only
4511
- *
4512
- */
4513
- reportStory(peerId: InputPeerLike, storyIds: MaybeArray<number>, params?: {
4514
- /**
4515
- * Reason for reporting
4516
- *
4517
- * @default inputReportReasonSpam
4518
- */
4519
- reason?: tl.TypeReportReason;
4520
- /**
4521
- * Additional comment to the report
4522
- */
4523
- message?: string;
4524
- }): Promise<void>;
4525
4609
  /**
4526
4610
  * Send (or remove) a reaction to a story
4527
4611
  * **Available**: 👤 users only
@@ -61,4 +61,12 @@ export declare function uploadFile(client: ITelegramClient, params: {
61
61
  * the stream will be buffered in memory and the file size will be inferred from the buffer.
62
62
  */
63
63
  requireFileSize?: boolean;
64
+ /**
65
+ * When using `inputMediaUploadedPhoto` (e.g. when sending an uploaded photo) require
66
+ * the file extension to be known beforehand.
67
+ *
68
+ * This will make the library try to guess the file extension from the file mime type,
69
+ * or throw an error if it cannot be guessed.
70
+ */
71
+ requireExtension?: boolean;
64
72
  }): Promise<UploadedFile>;
@@ -0,0 +1,16 @@
1
+ import { ITelegramClient } from '../../client.types.js';
2
+ import { InputMessageId } from '../../types/messages/input-message-id.js';
3
+ /**
4
+ * Accept, hide or convert a star gift.
5
+ *
6
+ * @returns Whether the action was successful
7
+ */
8
+ export declare function acceptStarGift(client: ITelegramClient, params: InputMessageId & {
9
+ /**
10
+ * Action to perform on the gift.
11
+ * - `save` - save the gift to your profile
12
+ * - `hide` - hide the gift from your profile
13
+ * - `convert` - convert the gift to stars (can't be undone)
14
+ */
15
+ action: 'save' | 'hide' | 'convert';
16
+ }): Promise<boolean>;
@@ -0,0 +1,6 @@
1
+ import { ITelegramClient } from '../../client.types.js';
2
+ import { StarGift } from '../../types/premium/stars-gift.js';
3
+ /**
4
+ * Get the list of available star gifts.
5
+ */
6
+ export declare function getStarGiftOptions(client: ITelegramClient): Promise<StarGift[]>;
@@ -0,0 +1,22 @@
1
+ import { ITelegramClient } from '../../client.types.js';
2
+ import { InputPeerLike } from '../../types/peers/peer.js';
3
+ import { UserStarGift } from '../../types/premium/stars-gift.js';
4
+ import { ArrayPaginated } from '../../types/utils.js';
5
+ /**
6
+ * Get a list of gifts sent to a user.
7
+ *
8
+ * @param userId User whose gifts to fetch
9
+ * @returns Gifts sent to the user
10
+ */
11
+ export declare function getStarGifts(client: ITelegramClient, userId: InputPeerLike, params?: {
12
+ /**
13
+ * Offset for pagination.
14
+ */
15
+ offset?: string;
16
+ /**
17
+ * Maximum number of gifts to fetch.
18
+ *
19
+ * @default 100
20
+ */
21
+ limit?: number;
22
+ }): Promise<ArrayPaginated<UserStarGift, string>>;
@@ -0,0 +1,26 @@
1
+ import { ITelegramClient } from '../../client.types.js';
2
+ import { InputPeerLike, UserStarGift } from '../../types/index.js';
3
+ import { getStarGifts } from './get-star-gifts.js';
4
+ /**
5
+ * Iterate over gifts sent to a given user.
6
+ *
7
+ * Wrapper over {@link getStarGifts}
8
+ *
9
+ * @param peerId Peer ID
10
+ * @param params Additional parameters
11
+ */
12
+ export declare function iterStarGifts(client: ITelegramClient, peerId: InputPeerLike, params?: Parameters<typeof getStarGifts>[2] & {
13
+ /**
14
+ * Total number of gifts to fetch
15
+ *
16
+ * @default Infinity, i.e. fetch all gifts
17
+ */
18
+ limit?: number;
19
+ /**
20
+ * Number of gifts to fetch per request
21
+ * Usually you don't need to change this
22
+ *
23
+ * @default 100
24
+ */
25
+ chunkSize?: number;
26
+ }): AsyncIterableIterator<UserStarGift>;
@@ -0,0 +1,35 @@
1
+ import { default as Long } from 'long';
2
+ import { InputPeerLike } from '../../types/peers/peer.js';
3
+ import { StarGift } from '../../types/premium/stars-gift.js';
4
+ import { InputText } from '../../types/misc/entities.js';
5
+ import { ITelegramClient } from '../../client.types.js';
6
+ import { Message } from '../../types/messages/message.js';
7
+ /**
8
+ * Send a star gift to a user.
9
+ *
10
+ * > **Note**: this method is not indended to be used by full-fledged clients,
11
+ * > as this method hides the actual invoice and payment form from the user.
12
+ * > For GUI clients, you should refer to the method's source code and
13
+ * > present the payment form to the user.
14
+ *
15
+ * @returns Service message about the sent gift
16
+ */
17
+ export declare function sendStarGift(client: ITelegramClient, params: {
18
+ /** ID of the user to send the gift to */
19
+ userId: InputPeerLike;
20
+ /** ID of the gift to send */
21
+ gift: Long | StarGift;
22
+ /**
23
+ * Whether to send the gift anonymously
24
+ * (i.e. if the recipient chooses to display the gift
25
+ * on their profile, your name won't be visible)
26
+ */
27
+ anonymous?: boolean;
28
+ /** Message to send along with the gift */
29
+ message?: InputText;
30
+ /**
31
+ * Whether to dispatch the new message event
32
+ * to the client's update handler.
33
+ */
34
+ shouldDispatch?: true;
35
+ }): Promise<Message>;
@@ -1,5 +1,5 @@
1
1
  import { ITelegramClient } from '../../client.types.js';
2
- import { InputFileLike, InputPeerLike, InputStickerSetItem, StickerSourceType, StickerType, StickerSet } from '../../types/index.js';
2
+ import { InputFileLike, InputPeerLike, InputStickerSetItem, StickerType, StickerSet } from '../../types/index.js';
3
3
  /**
4
4
  * Create a new sticker set.
5
5
  *
@@ -32,12 +32,6 @@ export declare function createStickerSet(client: ITelegramClient, params: {
32
32
  * @default `sticker`, i.e. regular stickers.
33
33
  */
34
34
  type?: StickerType;
35
- /**
36
- * File source type for the stickers in this set.
37
- *
38
- * @default `static`, i.e. regular WEBP stickers.
39
- */
40
- sourceType?: StickerSourceType;
41
35
  /**
42
36
  * Whether to create "adaptive" emoji set.
43
37
  *
@@ -201,6 +201,7 @@ export { verifyPasswordEmail } from './methods/password/password-email.js';
201
201
  export { resendPasswordEmail } from './methods/password/password-email.js';
202
202
  export { cancelPasswordEmail } from './methods/password/password-email.js';
203
203
  export { removeCloudPassword } from './methods/password/remove-cloud-password.js';
204
+ export { acceptStarGift } from './methods/premium/accept-star-gift.js';
204
205
  export { applyBoost } from './methods/premium/apply-boost.js';
205
206
  export { canApplyBoost } from './methods/premium/can-apply-boost.js';
206
207
  export type { CanApplyBoostResult } from './methods/premium/can-apply-boost.js';
@@ -212,9 +213,13 @@ export { getBoosts } from './methods/premium/get-boosts.js';
212
213
  export { getBusinessChatLinks } from './methods/premium/get-business-chat-links.js';
213
214
  export { getBusinessConnection } from './methods/premium/get-business-connection.js';
214
215
  export { getMyBoostSlots } from './methods/premium/get-my-boost-slots.js';
216
+ export { getStarGiftOptions } from './methods/premium/get-star-gift-options.js';
217
+ export { getStarGifts } from './methods/premium/get-star-gifts.js';
215
218
  export { getStarsTransactions } from './methods/premium/get-stars-transactions.js';
216
219
  export { iterBoosters } from './methods/premium/iter-boosters.js';
220
+ export { iterStarGifts } from './methods/premium/iter-star-gifts.js';
217
221
  export { iterStarsTransactions } from './methods/premium/iter-stars-transactions.js';
222
+ export { sendStarGift } from './methods/premium/send-star-gift.js';
218
223
  export { setBusinessIntro } from './methods/premium/set-business-intro.js';
219
224
  export { setBusinessWorkHours } from './methods/premium/set-business-work-hours.js';
220
225
  export { addStickerToSet } from './methods/stickers/add-sticker-to-set.js';
@@ -246,7 +251,6 @@ export { iterAllStories } from './methods/stories/iter-all-stories.js';
246
251
  export { iterProfileStories } from './methods/stories/iter-profile-stories.js';
247
252
  export { iterStoryViewers } from './methods/stories/iter-story-viewers.js';
248
253
  export { readStories } from './methods/stories/read-stories.js';
249
- export { reportStory } from './methods/stories/report-story.js';
250
254
  export { sendStoryReaction } from './methods/stories/send-story-reaction.js';
251
255
  export { sendStory } from './methods/stories/send-story.js';
252
256
  export { togglePeerStoriesArchived } from './methods/stories/toggle-peer-stories-archived.js';
@@ -186,6 +186,13 @@ export declare function requestPeer(text: string, buttonId: number, params: {
186
186
  */
187
187
  count?: number;
188
188
  }): tl.RawKeyboardButtonRequestPeer;
189
+ /**
190
+ * Button to copy text to the user's clipboard
191
+ */
192
+ export declare function copy(params: {
193
+ text: string;
194
+ copyText?: string;
195
+ }): tl.RawKeyboardButtonCopy;
189
196
  /**
190
197
  * Find a button in the keyboard by its text or by predicate
191
198
  *
@@ -44,4 +44,5 @@ export declare class Video extends RawDocument {
44
44
  /** For self-destructing videos, TTL in seconds */
45
45
  get ttlSeconds(): number | null;
46
46
  get videoStartTs(): number | null;
47
+ get codec(): string | null;
47
48
  }
@@ -2,6 +2,8 @@ import { tl } from '@mtcute/tl';
2
2
  import { CallDiscardReason } from '../calls/index.js';
3
3
  import { Photo } from '../media/photo.js';
4
4
  import { Peer } from '../peers/peer.js';
5
+ import { StarGift } from '../premium/stars-gift.js';
6
+ import { TextWithEntities } from '../misc/entities.js';
5
7
  import { Message } from './message.js';
6
8
  /** Group was created */
7
9
  export interface ActionChatCreated {
@@ -359,7 +361,7 @@ export interface ActionPaymentRefunded {
359
361
  charge: tl.TypePaymentCharge;
360
362
  }
361
363
  /** Telegram Stars were gifted by the other chat participant */
362
- export interface ActionStarsGifted {
364
+ export interface ActionStarGifted {
363
365
  readonly type: 'stars_gifted';
364
366
  /** Whether `currency` is a cryptocurrency */
365
367
  isCrypto: boolean;
@@ -387,6 +389,21 @@ export interface ActionStarsPrize {
387
389
  /** Message ID containing the giveaway */
388
390
  giveawayMessageId: number;
389
391
  }
390
- export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarsGifted | ActionStarsPrize | null;
392
+ export interface ActionStarGift {
393
+ readonly type: 'stars_gift';
394
+ /** Whether the sender chose to send the gift anonymously */
395
+ nameHidden: boolean;
396
+ /** Whether this gift was saved to the recipient's profile */
397
+ saved: boolean;
398
+ /** Whether this gift was converted to stars */
399
+ converted: boolean;
400
+ /** Amount of stars the gift can be converted to by the recipient */
401
+ convertStars: tl.Long;
402
+ /** The gift itself */
403
+ gift: StarGift;
404
+ /** Message attached to the gift */
405
+ message: TextWithEntities | null;
406
+ }
407
+ export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarGifted | ActionStarsPrize | ActionStarGift | null;
391
408
  /** @internal */
392
409
  export declare function _messageActionFromTl(this: Message, act: tl.TypeMessageAction): MessageAction;
@@ -1,6 +1,6 @@
1
1
  import { tl } from '@mtcute/tl';
2
2
  import { InputFileLike } from '../files/index.js';
3
- import { MaskPosition, Sticker, StickerSourceType, StickerType, Thumbnail } from '../media/index.js';
3
+ import { MaskPosition, Sticker, StickerType, Thumbnail } from '../media/index.js';
4
4
  /**
5
5
  * Input sticker set.
6
6
  * Can be one of:
@@ -71,10 +71,6 @@ export declare class StickerSet {
71
71
  * Type of the stickers in this set
72
72
  */
73
73
  get type(): StickerType;
74
- /**
75
- * Source file type of the stickers in this set
76
- */
77
- get sourceType(): StickerSourceType;
78
74
  /**
79
75
  * Date when this sticker set was installed
80
76
  */
@@ -8,3 +8,4 @@ export * from './business-intro.js';
8
8
  export * from './business-work-hours.js';
9
9
  export * from './stars-transaction.js';
10
10
  export * from './stars-status.js';
11
+ export * from './stars-gift.js';