@yaebal/contexts 0.0.1 → 0.0.3
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.
- package/lib/generated/business-connection.d.ts +2 -2
- package/lib/generated/business-connection.js +2 -2
- package/lib/generated/business-message.d.ts +77 -33
- package/lib/generated/business-message.d.ts.map +1 -1
- package/lib/generated/business-message.js +130 -42
- package/lib/generated/business-message.js.map +1 -1
- package/lib/generated/callback-query.d.ts +73 -29
- package/lib/generated/callback-query.d.ts.map +1 -1
- package/lib/generated/callback-query.js +126 -38
- package/lib/generated/callback-query.js.map +1 -1
- package/lib/generated/channel-post.d.ts +77 -33
- package/lib/generated/channel-post.d.ts.map +1 -1
- package/lib/generated/channel-post.js +130 -42
- package/lib/generated/channel-post.js.map +1 -1
- package/lib/generated/chat-boost.d.ts +34 -20
- package/lib/generated/chat-boost.d.ts.map +1 -1
- package/lib/generated/chat-boost.js +51 -23
- package/lib/generated/chat-boost.js.map +1 -1
- package/lib/generated/chat-join-request.d.ts +63 -29
- package/lib/generated/chat-join-request.d.ts.map +1 -1
- package/lib/generated/chat-join-request.js +106 -38
- package/lib/generated/chat-join-request.js.map +1 -1
- package/lib/generated/chat-member.d.ts +63 -29
- package/lib/generated/chat-member.d.ts.map +1 -1
- package/lib/generated/chat-member.js +106 -38
- package/lib/generated/chat-member.js.map +1 -1
- package/lib/generated/chosen-inline-result.d.ts +29 -11
- package/lib/generated/chosen-inline-result.d.ts.map +1 -1
- package/lib/generated/chosen-inline-result.js +54 -18
- package/lib/generated/chosen-inline-result.js.map +1 -1
- package/lib/generated/deleted-business-messages.d.ts +34 -20
- package/lib/generated/deleted-business-messages.d.ts.map +1 -1
- package/lib/generated/deleted-business-messages.js +51 -23
- package/lib/generated/deleted-business-messages.js.map +1 -1
- package/lib/generated/edited-business-message.d.ts +77 -33
- package/lib/generated/edited-business-message.d.ts.map +1 -1
- package/lib/generated/edited-business-message.js +130 -42
- package/lib/generated/edited-business-message.js.map +1 -1
- package/lib/generated/edited-channel-post.d.ts +77 -33
- package/lib/generated/edited-channel-post.d.ts.map +1 -1
- package/lib/generated/edited-channel-post.js +130 -42
- package/lib/generated/edited-channel-post.js.map +1 -1
- package/lib/generated/edited-message.d.ts +77 -33
- package/lib/generated/edited-message.d.ts.map +1 -1
- package/lib/generated/edited-message.js +130 -42
- package/lib/generated/edited-message.js.map +1 -1
- package/lib/generated/guest-message.d.ts +252 -0
- package/lib/generated/guest-message.d.ts.map +1 -0
- package/lib/generated/guest-message.js +494 -0
- package/lib/generated/guest-message.js.map +1 -0
- package/lib/generated/index.d.ts +8 -2
- package/lib/generated/index.d.ts.map +1 -1
- package/lib/generated/index.js +7 -1
- package/lib/generated/index.js.map +1 -1
- package/lib/generated/inline-query.d.ts +30 -12
- package/lib/generated/inline-query.d.ts.map +1 -1
- package/lib/generated/inline-query.js +56 -20
- package/lib/generated/inline-query.js.map +1 -1
- package/lib/generated/managed-bot.d.ts +14 -0
- package/lib/generated/managed-bot.d.ts.map +1 -0
- package/lib/generated/managed-bot.js +18 -0
- package/lib/generated/managed-bot.js.map +1 -0
- package/lib/generated/message-reaction-count.d.ts +47 -23
- package/lib/generated/message-reaction-count.d.ts.map +1 -1
- package/lib/generated/message-reaction-count.js +74 -26
- package/lib/generated/message-reaction-count.js.map +1 -1
- package/lib/generated/message-reaction.d.ts +49 -25
- package/lib/generated/message-reaction.d.ts.map +1 -1
- package/lib/generated/message-reaction.js +76 -28
- package/lib/generated/message-reaction.js.map +1 -1
- package/lib/generated/message.d.ts +77 -33
- package/lib/generated/message.d.ts.map +1 -1
- package/lib/generated/message.js +130 -42
- package/lib/generated/message.js.map +1 -1
- package/lib/generated/my-chat-member.d.ts +63 -29
- package/lib/generated/my-chat-member.d.ts.map +1 -1
- package/lib/generated/my-chat-member.js +106 -38
- package/lib/generated/my-chat-member.js.map +1 -1
- package/lib/generated/poll-answer.d.ts +2 -2
- package/lib/generated/poll-answer.js +2 -2
- package/lib/generated/pre-checkout-query.d.ts +29 -11
- package/lib/generated/pre-checkout-query.d.ts.map +1 -1
- package/lib/generated/pre-checkout-query.js +54 -18
- package/lib/generated/pre-checkout-query.js.map +1 -1
- package/lib/generated/purchased-paid-media.d.ts +29 -11
- package/lib/generated/purchased-paid-media.d.ts.map +1 -1
- package/lib/generated/purchased-paid-media.js +54 -18
- package/lib/generated/purchased-paid-media.js.map +1 -1
- package/lib/generated/removed-chat-boost.d.ts +34 -20
- package/lib/generated/removed-chat-boost.d.ts.map +1 -1
- package/lib/generated/removed-chat-boost.js +51 -23
- package/lib/generated/removed-chat-boost.js.map +1 -1
- package/lib/generated/shipping-query.d.ts +29 -11
- package/lib/generated/shipping-query.d.ts.map +1 -1
- package/lib/generated/shipping-query.js +54 -18
- package/lib/generated/shipping-query.js.map +1 -1
- package/lib/index.test.js +1 -1
- package/lib/index.test.js.map +1 -1
- package/lib/sugar/business-message.d.ts +5 -0
- package/lib/sugar/business-message.d.ts.map +1 -1
- package/lib/sugar/channel-post.d.ts +5 -0
- package/lib/sugar/channel-post.d.ts.map +1 -1
- package/lib/sugar/edited-business-message.d.ts +5 -0
- package/lib/sugar/edited-business-message.d.ts.map +1 -1
- package/lib/sugar/edited-channel-post.d.ts +5 -0
- package/lib/sugar/edited-channel-post.d.ts.map +1 -1
- package/lib/sugar/edited-message.d.ts +5 -0
- package/lib/sugar/edited-message.d.ts.map +1 -1
- package/lib/sugar/message.d.ts +5 -0
- package/lib/sugar/message.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/business-connection.ts +3 -3
- package/src/generated/business-message.ts +132 -44
- package/src/generated/callback-query.ts +128 -40
- package/src/generated/channel-post.ts +132 -44
- package/src/generated/chat-boost.ts +53 -25
- package/src/generated/chat-join-request.ts +108 -40
- package/src/generated/chat-member.ts +108 -40
- package/src/generated/chosen-inline-result.ts +55 -19
- package/src/generated/deleted-business-messages.ts +53 -25
- package/src/generated/edited-business-message.ts +132 -44
- package/src/generated/edited-channel-post.ts +132 -44
- package/src/generated/edited-message.ts +132 -44
- package/src/generated/guest-message.ts +498 -0
- package/src/generated/index.ts +11 -3
- package/src/generated/inline-query.ts +57 -21
- package/src/generated/managed-bot.ts +22 -0
- package/src/generated/message-reaction-count.ts +76 -28
- package/src/generated/message-reaction.ts +78 -30
- package/src/generated/message.ts +132 -44
- package/src/generated/my-chat-member.ts +108 -40
- package/src/generated/poll-answer.ts +3 -3
- package/src/generated/poll.ts +1 -1
- package/src/generated/pre-checkout-query.ts +55 -19
- package/src/generated/purchased-paid-media.ts +55 -19
- package/src/generated/removed-chat-boost.ts +53 -25
- package/src/generated/shipping-query.ts +55 -19
- package/src/index.test.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,KAAK,CAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MA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AAgB,UAAU,CAAC,CAAC,SAAS,MAAM,aAAa,EACvD,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,CAAC,CAAC,MAAM,GACd,aAAa,CAAC,CAAC,CAAC,CAMlB"}
|
package/lib/generated/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { BusinessConnectionContext } from "./business-connection.js";
|
|
|
6
6
|
import { BusinessMessageContext } from "../sugar/business-message.js";
|
|
7
7
|
import { EditedBusinessMessageContext } from "../sugar/edited-business-message.js";
|
|
8
8
|
import { DeletedBusinessMessagesContext } from "./deleted-business-messages.js";
|
|
9
|
+
import { GuestMessageContext } from "./guest-message.js";
|
|
9
10
|
import { MessageReactionContext } from "./message-reaction.js";
|
|
10
11
|
import { MessageReactionCountContext } from "./message-reaction-count.js";
|
|
11
12
|
import { InlineQueryContext } from "../sugar/inline-query.js";
|
|
@@ -21,6 +22,7 @@ import { ChatMemberContext } from "./chat-member.js";
|
|
|
21
22
|
import { ChatJoinRequestContext } from "../sugar/chat-join-request.js";
|
|
22
23
|
import { ChatBoostContext } from "./chat-boost.js";
|
|
23
24
|
import { RemovedChatBoostContext } from "./removed-chat-boost.js";
|
|
25
|
+
import { ManagedBotContext } from "./managed-bot.js";
|
|
24
26
|
export { MessageContext } from "../sugar/message.js";
|
|
25
27
|
export { MessageContextBase } from "./message.js";
|
|
26
28
|
export { EditedMessageContext } from "../sugar/edited-message.js";
|
|
@@ -35,6 +37,7 @@ export { BusinessMessageContextBase } from "./business-message.js";
|
|
|
35
37
|
export { EditedBusinessMessageContext } from "../sugar/edited-business-message.js";
|
|
36
38
|
export { EditedBusinessMessageContextBase } from "./edited-business-message.js";
|
|
37
39
|
export { DeletedBusinessMessagesContext } from "./deleted-business-messages.js";
|
|
40
|
+
export { GuestMessageContext } from "./guest-message.js";
|
|
38
41
|
export { MessageReactionContext } from "./message-reaction.js";
|
|
39
42
|
export { MessageReactionCountContext } from "./message-reaction-count.js";
|
|
40
43
|
export { InlineQueryContext } from "../sugar/inline-query.js";
|
|
@@ -55,6 +58,7 @@ export { ChatJoinRequestContext } from "../sugar/chat-join-request.js";
|
|
|
55
58
|
export { ChatJoinRequestContextBase } from "./chat-join-request.js";
|
|
56
59
|
export { ChatBoostContext } from "./chat-boost.js";
|
|
57
60
|
export { RemovedChatBoostContext } from "./removed-chat-boost.js";
|
|
61
|
+
export { ManagedBotContext } from "./managed-bot.js";
|
|
58
62
|
const CONTEXTS = {
|
|
59
63
|
message: MessageContext,
|
|
60
64
|
edited_message: EditedMessageContext,
|
|
@@ -64,6 +68,7 @@ const CONTEXTS = {
|
|
|
64
68
|
business_message: BusinessMessageContext,
|
|
65
69
|
edited_business_message: EditedBusinessMessageContext,
|
|
66
70
|
deleted_business_messages: DeletedBusinessMessagesContext,
|
|
71
|
+
guest_message: GuestMessageContext,
|
|
67
72
|
message_reaction: MessageReactionContext,
|
|
68
73
|
message_reaction_count: MessageReactionCountContext,
|
|
69
74
|
inline_query: InlineQueryContext,
|
|
@@ -79,8 +84,9 @@ const CONTEXTS = {
|
|
|
79
84
|
chat_join_request: ChatJoinRequestContext,
|
|
80
85
|
chat_boost: ChatBoostContext,
|
|
81
86
|
removed_chat_boost: RemovedChatBoostContext,
|
|
87
|
+
managed_bot: ManagedBotContext,
|
|
82
88
|
};
|
|
83
|
-
/**
|
|
89
|
+
/** build the right context for an update. */
|
|
84
90
|
export function contextFor(type, api, update) {
|
|
85
91
|
const Ctor = (CONTEXTS[type] ?? CONTEXTS.message);
|
|
86
92
|
return new Ctor(api, update);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,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AmB;IACnC,WAAW,EAAE,iBAAiB;IAC9B,iBAAiB,EAAE,sBAAsB;IACzC,UAAU,EAAE,gBAAgB;IAC5B,kBAAkB,EAAE,uBAAuB;IAC3C,WAAW,EAAE,iBAAiB;CACiE,CAAC;AAEjG,6CAA6C;AAC7C,MAAM,UAAU,UAAU,CACzB,IAAO,EACP,GAAQ,EACR,MAAgB;IAEhB,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,OAAO,CAG3B,CAAC;IACtB,OAAO,IAAI,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -6,14 +6,40 @@ export declare class InlineQueryContextBase {
|
|
|
6
6
|
readonly api: Api;
|
|
7
7
|
readonly update: t.Update;
|
|
8
8
|
constructor(api: Api, update: t.Update);
|
|
9
|
-
/**
|
|
9
|
+
/** id of the user this update is from. */
|
|
10
10
|
get senderId(): number;
|
|
11
|
-
/**
|
|
11
|
+
/** first name of the user this update is from. */
|
|
12
12
|
get firstName(): string | undefined;
|
|
13
13
|
/** Use this method to get a list of profile pictures for a user. Returns a [UserProfilePhotos](https://core.telegram.org/bots/api/#userprofilephotos) object. */
|
|
14
14
|
getUserProfilePhotos(params: Omit<t.GetUserProfilePhotosParams, "user_id">): Promise<t.UserProfilePhotos>;
|
|
15
|
-
/**
|
|
15
|
+
/** Use this method to get a list of profile audios for a user. Returns a [UserProfileAudios](https://core.telegram.org/bots/api/#userprofileaudios) object. */
|
|
16
|
+
getUserProfileAudios(params: Omit<t.GetUserProfileAudiosParams, "user_id">): Promise<t.UserProfileAudios>;
|
|
17
|
+
/** Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method [requestEmojiStatusAccess](/bots/webapps#initializing-mini-apps). Returns *True* on success. */
|
|
16
18
|
setUserEmojiStatus(params: Omit<t.SetUserEmojiStatusParams, "user_id">): Promise<boolean>;
|
|
19
|
+
/** Use this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user. On success, an array of [Message](https://core.telegram.org/bots/api/#message) objects is returned. */
|
|
20
|
+
getUserPersonalChatMessages(params: Omit<t.GetUserPersonalChatMessagesParams, "user_id">): Promise<t.Message[]>;
|
|
21
|
+
/** Use this method to get the token of a managed bot. Returns the token as *String* on success. */
|
|
22
|
+
getManagedBotToken(params?: Omit<t.GetManagedBotTokenParams, "user_id">): Promise<string>;
|
|
23
|
+
/** Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as *String* on success. */
|
|
24
|
+
replaceManagedBotToken(params?: Omit<t.ReplaceManagedBotTokenParams, "user_id">): Promise<string>;
|
|
25
|
+
/** Use this method to get the access settings of a managed bot. Returns a [BotAccessSettings](https://core.telegram.org/bots/api/#botaccesssettings) object on success. */
|
|
26
|
+
getManagedBotAccessSettings(params?: Omit<t.GetManagedBotAccessSettingsParams, "user_id">): Promise<t.BotAccessSettings>;
|
|
27
|
+
/** Use this method to change the access settings of a managed bot. Returns *True* on success. */
|
|
28
|
+
setManagedBotAccessSettings(params: Omit<t.SetManagedBotAccessSettingsParams, "user_id">): Promise<boolean>;
|
|
29
|
+
/** Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns *True* on success. */
|
|
30
|
+
sendGift(params: Omit<t.SendGiftParams, "user_id">): Promise<boolean>;
|
|
31
|
+
/** Gifts a Telegram Premium subscription to the given user. Returns *True* on success. */
|
|
32
|
+
giftPremiumSubscription(params: Omit<t.GiftPremiumSubscriptionParams, "user_id">): Promise<boolean>;
|
|
33
|
+
/** Verifies a user [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. */
|
|
34
|
+
verifyUser(params: Omit<t.VerifyUserParams, "user_id">): Promise<boolean>;
|
|
35
|
+
/** Removes verification from a user who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
36
|
+
removeUserVerification(params?: Omit<t.RemoveUserVerificationParams, "user_id">): Promise<boolean>;
|
|
37
|
+
/** Returns the gifts owned and hosted by a user. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
|
|
38
|
+
getUserGifts(params: Omit<t.GetUserGiftsParams, "user_id">): Promise<t.OwnedGifts>;
|
|
39
|
+
/** Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api/#preparedinlinemessage) object. */
|
|
40
|
+
savePreparedInlineMessage(params: Omit<t.SavePreparedInlineMessageParams, "user_id">): Promise<t.PreparedInlineMessage>;
|
|
41
|
+
/** Stores a keyboard button that can be used by a user within a Mini App. Returns a [PreparedKeyboardButton](https://core.telegram.org/bots/api/#preparedkeyboardbutton) object. */
|
|
42
|
+
savePreparedKeyboardButton(params: Omit<t.SavePreparedKeyboardButtonParams, "user_id">): Promise<t.PreparedKeyboardButton>;
|
|
17
43
|
/** Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset), [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), or [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. */
|
|
18
44
|
uploadStickerFile(params: Omit<t.UploadStickerFileParams, "user_id">): Promise<t.File>;
|
|
19
45
|
/** Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns *True* on success. */
|
|
@@ -24,16 +50,8 @@ export declare class InlineQueryContextBase {
|
|
|
24
50
|
replaceStickerInSet(params: Omit<t.ReplaceStickerInSetParams, "user_id">): Promise<boolean>;
|
|
25
51
|
/** Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns *True* on success. */
|
|
26
52
|
setStickerSetThumbnail(params: Omit<t.SetStickerSetThumbnailParams, "user_id">): Promise<boolean>;
|
|
27
|
-
/**
|
|
28
|
-
sendGift(params: Omit<t.SendGiftParams, "user_id">): Promise<boolean>;
|
|
29
|
-
/** Verifies a user [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. */
|
|
30
|
-
verifyUser(params: Omit<t.VerifyUserParams, "user_id">): Promise<boolean>;
|
|
31
|
-
/** Removes verification from a user who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
32
|
-
removeUserVerification(params?: Omit<t.RemoveUserVerificationParams, "user_id">): Promise<boolean>;
|
|
33
|
-
/** Use this method to send answers to an inline query. On success, *True* is returned. No more than **50** results per query are allowed. */
|
|
53
|
+
/** Use this method to send answers to an inline query. On success, *True* is returned. No more than **50** results per query are allowed. */
|
|
34
54
|
answer(params: Omit<t.AnswerInlineQueryParams, "inline_query_id">): Promise<boolean>;
|
|
35
|
-
/** Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api/#preparedinlinemessage) object. */
|
|
36
|
-
savePreparedInlineMessage(params: Omit<t.SavePreparedInlineMessageParams, "user_id">): Promise<t.PreparedInlineMessage>;
|
|
37
55
|
/** Refunds a successful payment in [Telegram Stars](https://t.me/BotNews/90). Returns *True* on success. */
|
|
38
56
|
refundStarPayment(params: Omit<t.RefundStarPaymentParams, "user_id">): Promise<boolean>;
|
|
39
57
|
/** Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns *True* on success. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-query.d.ts","sourceRoot":"","sources":["../../src/generated/inline-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,KAAK,CAAC,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,sBAAuB,SAAQ,CAAC,CAAC,WAAW;CAAG;AAChE,qBAAa,sBAAsB;IAClC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,M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AAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,yBAAyB,EAAE,SAAS,CAAC;IAGxE,mMAAmM;IACnM,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAGhE,iZAAiZ;IACjZ,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,yBAAyB,EAAE,SAAS,CAAC;IAGxE,2LAA2L;IAC3L,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,4BAA4B,EAAE,SAAS,CAAC;IAG9E,6IAA6I;IAC7I,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAuB,EAAE,iBAAiB,CAAC;IAGjE,4GAA4G;IAC5G,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAuB,EAAE,SAAS,CAAC;IAGpE,2HAA2H;IAC3H,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,8BAA8B,EAAE,SAAS,CAAC;IAGlF,qmBAAqmB;IACrmB,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,2BAA2B,EAAE,SAAS,CAAC;IAG5E,+VAA+V;IAC/V,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,kBAAkB,EAAE,SAAS,CAAC;IAG1D,8eAA8e;IAC9e,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAuB,EAAE,SAAS,CAAC;CAGpE"}
|
|
@@ -6,11 +6,11 @@ export class InlineQueryContextBase {
|
|
|
6
6
|
this.update = update;
|
|
7
7
|
Object.assign(this, update.inline_query ?? {});
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
9
|
+
/** id of the user this update is from. */
|
|
10
10
|
get senderId() {
|
|
11
11
|
return this.from.id;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/** first name of the user this update is from. */
|
|
14
14
|
get firstName() {
|
|
15
15
|
return this.from.first_name;
|
|
16
16
|
}
|
|
@@ -18,10 +18,62 @@ export class InlineQueryContextBase {
|
|
|
18
18
|
getUserProfilePhotos(params) {
|
|
19
19
|
return this.api.call("getUserProfilePhotos", { user_id: this.from.id, ...params });
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/** Use this method to get a list of profile audios for a user. Returns a [UserProfileAudios](https://core.telegram.org/bots/api/#userprofileaudios) object. */
|
|
22
|
+
getUserProfileAudios(params) {
|
|
23
|
+
return this.api.call("getUserProfileAudios", { user_id: this.from.id, ...params });
|
|
24
|
+
}
|
|
25
|
+
/** Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method [requestEmojiStatusAccess](/bots/webapps#initializing-mini-apps). Returns *True* on success. */
|
|
22
26
|
setUserEmojiStatus(params) {
|
|
23
27
|
return this.api.call("setUserEmojiStatus", { user_id: this.from.id, ...params });
|
|
24
28
|
}
|
|
29
|
+
/** Use this method to get the last messages from the personal chat (i.e., the chat currently added to their profile) of a given user. On success, an array of [Message](https://core.telegram.org/bots/api/#message) objects is returned. */
|
|
30
|
+
getUserPersonalChatMessages(params) {
|
|
31
|
+
return this.api.call("getUserPersonalChatMessages", { user_id: this.from.id, ...params });
|
|
32
|
+
}
|
|
33
|
+
/** Use this method to get the token of a managed bot. Returns the token as *String* on success. */
|
|
34
|
+
getManagedBotToken(params) {
|
|
35
|
+
return this.api.call("getManagedBotToken", { user_id: this.from.id, ...params });
|
|
36
|
+
}
|
|
37
|
+
/** Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as *String* on success. */
|
|
38
|
+
replaceManagedBotToken(params) {
|
|
39
|
+
return this.api.call("replaceManagedBotToken", { user_id: this.from.id, ...params });
|
|
40
|
+
}
|
|
41
|
+
/** Use this method to get the access settings of a managed bot. Returns a [BotAccessSettings](https://core.telegram.org/bots/api/#botaccesssettings) object on success. */
|
|
42
|
+
getManagedBotAccessSettings(params) {
|
|
43
|
+
return this.api.call("getManagedBotAccessSettings", { user_id: this.from.id, ...params });
|
|
44
|
+
}
|
|
45
|
+
/** Use this method to change the access settings of a managed bot. Returns *True* on success. */
|
|
46
|
+
setManagedBotAccessSettings(params) {
|
|
47
|
+
return this.api.call("setManagedBotAccessSettings", { user_id: this.from.id, ...params });
|
|
48
|
+
}
|
|
49
|
+
/** Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns *True* on success. */
|
|
50
|
+
sendGift(params) {
|
|
51
|
+
return this.api.call("sendGift", { user_id: this.from.id, ...params });
|
|
52
|
+
}
|
|
53
|
+
/** Gifts a Telegram Premium subscription to the given user. Returns *True* on success. */
|
|
54
|
+
giftPremiumSubscription(params) {
|
|
55
|
+
return this.api.call("giftPremiumSubscription", { user_id: this.from.id, ...params });
|
|
56
|
+
}
|
|
57
|
+
/** Verifies a user [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. */
|
|
58
|
+
verifyUser(params) {
|
|
59
|
+
return this.api.call("verifyUser", { user_id: this.from.id, ...params });
|
|
60
|
+
}
|
|
61
|
+
/** Removes verification from a user who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
62
|
+
removeUserVerification(params) {
|
|
63
|
+
return this.api.call("removeUserVerification", { user_id: this.from.id, ...params });
|
|
64
|
+
}
|
|
65
|
+
/** Returns the gifts owned and hosted by a user. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
|
|
66
|
+
getUserGifts(params) {
|
|
67
|
+
return this.api.call("getUserGifts", { user_id: this.from.id, ...params });
|
|
68
|
+
}
|
|
69
|
+
/** Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api/#preparedinlinemessage) object. */
|
|
70
|
+
savePreparedInlineMessage(params) {
|
|
71
|
+
return this.api.call("savePreparedInlineMessage", { user_id: this.from.id, ...params });
|
|
72
|
+
}
|
|
73
|
+
/** Stores a keyboard button that can be used by a user within a Mini App. Returns a [PreparedKeyboardButton](https://core.telegram.org/bots/api/#preparedkeyboardbutton) object. */
|
|
74
|
+
savePreparedKeyboardButton(params) {
|
|
75
|
+
return this.api.call("savePreparedKeyboardButton", { user_id: this.from.id, ...params });
|
|
76
|
+
}
|
|
25
77
|
/** Use this method to upload a file with a sticker for later use in the [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset), [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset), or [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset) methods (the file can be used multiple times). Returns the uploaded [File](https://core.telegram.org/bots/api/#file) on success. */
|
|
26
78
|
uploadStickerFile(params) {
|
|
27
79
|
return this.api.call("uploadStickerFile", { user_id: this.from.id, ...params });
|
|
@@ -42,26 +94,10 @@ export class InlineQueryContextBase {
|
|
|
42
94
|
setStickerSetThumbnail(params) {
|
|
43
95
|
return this.api.call("setStickerSetThumbnail", { user_id: this.from.id, ...params });
|
|
44
96
|
}
|
|
45
|
-
/**
|
|
46
|
-
sendGift(params) {
|
|
47
|
-
return this.api.call("sendGift", { user_id: this.from.id, ...params });
|
|
48
|
-
}
|
|
49
|
-
/** Verifies a user [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. */
|
|
50
|
-
verifyUser(params) {
|
|
51
|
-
return this.api.call("verifyUser", { user_id: this.from.id, ...params });
|
|
52
|
-
}
|
|
53
|
-
/** Removes verification from a user who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
54
|
-
removeUserVerification(params) {
|
|
55
|
-
return this.api.call("removeUserVerification", { user_id: this.from.id, ...params });
|
|
56
|
-
}
|
|
57
|
-
/** Use this method to send answers to an inline query. On success, *True* is returned. No more than **50** results per query are allowed. */
|
|
97
|
+
/** Use this method to send answers to an inline query. On success, *True* is returned. No more than **50** results per query are allowed. */
|
|
58
98
|
answer(params) {
|
|
59
99
|
return this.api.call("answerInlineQuery", { inline_query_id: this.id, ...params });
|
|
60
100
|
}
|
|
61
|
-
/** Stores a message that can be sent by a user of a Mini App. Returns a [PreparedInlineMessage](https://core.telegram.org/bots/api/#preparedinlinemessage) object. */
|
|
62
|
-
savePreparedInlineMessage(params) {
|
|
63
|
-
return this.api.call("savePreparedInlineMessage", { user_id: this.from.id, ...params });
|
|
64
|
-
}
|
|
65
101
|
/** Refunds a successful payment in [Telegram Stars](https://t.me/BotNews/90). Returns *True* on success. */
|
|
66
102
|
refundStarPayment(params) {
|
|
67
103
|
return this.api.call("refundStarPayment", { user_id: this.from.id, ...params });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-query.js","sourceRoot":"","sources":["../../src/generated/inline-query.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,sBAAsB;IACzB,GAAG,CAAM;IACT,MAAM,CAAW;IAC1B,YAAY,GAAQ,EAAE,MAAgB;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IAChD,CAAC;IACD,0CAA0C;IAC1C,IAAI,QAAQ;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACrB,CAAC;IACD,kDAAkD;IAClD,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;IAC7B,CAAC;IACD,iKAAiK;IACjK,oBAAoB,CAAC,MAAqD;QACzE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAsB,sBAAsB,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACzG,CAAC;IACD,
|
|
1
|
+
{"version":3,"file":"inline-query.js","sourceRoot":"","sources":["../../src/generated/inline-query.ts"],"names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,IAAI,CAAC,GAAG,CAAC,IAAI,CAAU,0BAA0B,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;IACD,qmBAAqmB;IACrmB,qBAAqB,CAAC,MAAsD;QAC3E,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAU,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC9F,CAAC;IACD,+VAA+V;IAC/V,YAAY,CAAC,MAA6C;QACzD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAsB,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;IACD,8eAA8e;IAC9e,iBAAiB,CAAC,MAAkD;QACnE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAoB,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACpG,CAAC;CACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Api } from "@yaebal/core";
|
|
2
|
+
import type * as t from "@yaebal/types";
|
|
3
|
+
export interface ManagedBotContext extends t.ManagedBotUpdated {
|
|
4
|
+
}
|
|
5
|
+
export declare class ManagedBotContext {
|
|
6
|
+
readonly api: Api;
|
|
7
|
+
readonly update: t.Update;
|
|
8
|
+
constructor(api: Api, update: t.Update);
|
|
9
|
+
/** id of the user this update is from. */
|
|
10
|
+
get senderId(): number;
|
|
11
|
+
/** first name of the user this update is from. */
|
|
12
|
+
get firstName(): string | undefined;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=managed-bot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-bot.d.ts","sourceRoot":"","sources":["../../src/generated/managed-bot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,KAAK,CAAC,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,iBAAkB,SAAQ,CAAC,CAAC,iBAAiB;CAAG;AACjE,qBAAa,iBAAiB;IAC7B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;gBACd,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM;IAKtC,0CAA0C;IAC1C,IAAI,QAAQ,IAAI,MAAM,CAErB;IACD,kDAAkD;IAClD,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;CACD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class ManagedBotContext {
|
|
2
|
+
api;
|
|
3
|
+
update;
|
|
4
|
+
constructor(api, update) {
|
|
5
|
+
this.api = api;
|
|
6
|
+
this.update = update;
|
|
7
|
+
Object.assign(this, update.managed_bot ?? {});
|
|
8
|
+
}
|
|
9
|
+
/** id of the user this update is from. */
|
|
10
|
+
get senderId() {
|
|
11
|
+
return this.user.id;
|
|
12
|
+
}
|
|
13
|
+
/** first name of the user this update is from. */
|
|
14
|
+
get firstName() {
|
|
15
|
+
return this.user.first_name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=managed-bot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-bot.js","sourceRoot":"","sources":["../../src/generated/managed-bot.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,iBAAiB;IACpB,GAAG,CAAM;IACT,MAAM,CAAW;IAC1B,YAAY,GAAQ,EAAE,MAAgB;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAC/C,CAAC;IACD,0CAA0C;IAC1C,IAAI,QAAQ;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACrB,CAAC;IACD,kDAAkD;IAClD,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;IAC7B,CAAC;CACD"}
|
|
@@ -6,18 +6,20 @@ export declare class MessageReactionCountContext {
|
|
|
6
6
|
readonly api: Api;
|
|
7
7
|
readonly update: t.Update;
|
|
8
8
|
constructor(api: Api, update: t.Update);
|
|
9
|
-
/**
|
|
9
|
+
/** id of the chat this update is in. */
|
|
10
10
|
get chatId(): number;
|
|
11
|
-
/**
|
|
11
|
+
/** whether this is a private (1:1) chat. */
|
|
12
12
|
get isPM(): boolean;
|
|
13
|
-
/**
|
|
13
|
+
/** whether this is a group or supergroup. */
|
|
14
14
|
get isGroup(): boolean;
|
|
15
|
-
/**
|
|
15
|
+
/** camel-case alias for `message_id`. */
|
|
16
16
|
get messageId(): number;
|
|
17
17
|
/** Use this method to send text messages. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
18
18
|
send(params: Omit<t.SendMessageParams, "chat_id">): Promise<t.Message>;
|
|
19
19
|
/** Use this method to send photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
20
20
|
sendPhoto(params: Omit<t.SendPhotoParams, "chat_id">): Promise<t.Message>;
|
|
21
|
+
/** Use this method to send live photos. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
22
|
+
sendLivePhoto(params: Omit<t.SendLivePhotoParams, "chat_id">): Promise<t.Message>;
|
|
21
23
|
/** Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For sending voice messages, use the [sendVoice](https://core.telegram.org/bots/api/#sendvoice) method instead. */
|
|
22
24
|
sendAudio(params: Omit<t.SendAudioParams, "chat_id">): Promise<t.Message>;
|
|
23
25
|
/** Use this method to send general files. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. */
|
|
@@ -32,7 +34,7 @@ export declare class MessageReactionCountContext {
|
|
|
32
34
|
sendVideoNote(params: Omit<t.SendVideoNoteParams, "chat_id">): Promise<t.Message>;
|
|
33
35
|
/** Use this method to send paid media. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
34
36
|
sendPaidMedia(params: Omit<t.SendPaidMediaParams, "chat_id">): Promise<t.Message>;
|
|
35
|
-
/** Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of [
|
|
37
|
+
/** Use this method to send a group of photos, live photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of [Message](https://core.telegram.org/bots/api/#message) objects that were sent is returned. */
|
|
36
38
|
sendMediaGroup(params: Omit<t.SendMediaGroupParams, "chat_id">): Promise<t.Message[]>;
|
|
37
39
|
/** Use this method to send point on the map. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
38
40
|
sendLocation(params: Omit<t.SendLocationParams, "chat_id">): Promise<t.Message>;
|
|
@@ -42,8 +44,12 @@ export declare class MessageReactionCountContext {
|
|
|
42
44
|
sendContact(params: Omit<t.SendContactParams, "chat_id">): Promise<t.Message>;
|
|
43
45
|
/** Use this method to send a native poll. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
44
46
|
sendPoll(params: Omit<t.SendPollParams, "chat_id">): Promise<t.Message>;
|
|
47
|
+
/** Use this method to send a checklist on behalf of a connected business account. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
48
|
+
sendChecklist(params: Omit<t.SendChecklistParams, "chat_id">): Promise<t.Message>;
|
|
45
49
|
/** Use this method to send an animated emoji that will display a random value. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
46
50
|
sendDice(params: Omit<t.SendDiceParams, "chat_id">): Promise<t.Message>;
|
|
51
|
+
/** Use this method to stream a partial message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendMessage](https://core.telegram.org/bots/api/#sendmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
|
|
52
|
+
sendMessageDraft(params: Omit<t.SendMessageDraftParams, "chat_id">): Promise<boolean>;
|
|
47
53
|
/** Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns *True* on success. Example: The [ImageBot](https://t.me/imagebot) needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use [sendChatAction](https://core.telegram.org/bots/api/#sendchataction) with *action* = *upload\_photo*. The user will see a “sending photo” status for the bot. We only recommend using this method when a response from the bot will take a **noticeable** amount of time to arrive. */
|
|
48
54
|
sendChatAction(params: Omit<t.SendChatActionParams, "chat_id">): Promise<boolean>;
|
|
49
55
|
/** Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns *True* on success. */
|
|
@@ -74,35 +80,35 @@ export declare class MessageReactionCountContext {
|
|
|
74
80
|
setChatTitle(params: Omit<t.SetChatTitleParams, "chat_id">): Promise<boolean>;
|
|
75
81
|
/** Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns *True* on success. */
|
|
76
82
|
setChatDescription(params: Omit<t.SetChatDescriptionParams, "chat_id">): Promise<boolean>;
|
|
77
|
-
/** Use this method to add a message to the list of pinned messages in a chat.
|
|
83
|
+
/** Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns *True* on success. */
|
|
78
84
|
pin(params: Omit<t.PinChatMessageParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
79
|
-
/** Use this method to remove a message from the list of pinned messages in a chat.
|
|
85
|
+
/** Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively. Returns *True* on success. */
|
|
80
86
|
unpin(params: Omit<t.UnpinChatMessageParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
81
|
-
/** Use this method to clear the list of pinned messages in a chat.
|
|
87
|
+
/** Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively. Returns *True* on success. */
|
|
82
88
|
unpinAllChatMessages(params?: Omit<t.UnpinAllChatMessagesParams, "chat_id">): Promise<boolean>;
|
|
83
89
|
/** Use this method for your bot to leave a group, supergroup or channel. Returns *True* on success. */
|
|
84
90
|
leaveChat(params?: Omit<t.LeaveChatParams, "chat_id">): Promise<boolean>;
|
|
85
91
|
/** Use this method to get up-to-date information about the chat. Returns a [ChatFullInfo](https://core.telegram.org/bots/api/#chatfullinfo) object on success. */
|
|
86
92
|
getChat(params?: Omit<t.GetChatParams, "chat_id">): Promise<t.ChatFullInfo>;
|
|
87
|
-
/** Use this method to get a list of administrators in a chat
|
|
88
|
-
getChatAdministrators(params
|
|
93
|
+
/** Use this method to get a list of administrators in a chat. Returns an Array of [ChatMember](https://core.telegram.org/bots/api/#chatmember) objects. */
|
|
94
|
+
getChatAdministrators(params: Omit<t.GetChatAdministratorsParams, "chat_id">): Promise<t.ChatMember[]>;
|
|
89
95
|
/** Use this method to get the number of members in a chat. Returns *Int* on success. */
|
|
90
96
|
getChatMemberCount(params?: Omit<t.GetChatMemberCountParams, "chat_id">): Promise<number>;
|
|
91
97
|
/** Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field *can\_set\_sticker\_set* optionally returned in [getChat](https://core.telegram.org/bots/api/#getchat) requests to check if the bot can use this method. Returns *True* on success. */
|
|
92
98
|
setChatStickerSet(params: Omit<t.SetChatStickerSetParams, "chat_id">): Promise<boolean>;
|
|
93
99
|
/** Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field *can\_set\_sticker\_set* optionally returned in [getChat](https://core.telegram.org/bots/api/#getchat) requests to check if the bot can use this method. Returns *True* on success. */
|
|
94
100
|
deleteChatStickerSet(params?: Omit<t.DeleteChatStickerSetParams, "chat_id">): Promise<boolean>;
|
|
95
|
-
/** Use this method to create a topic in a forum supergroup chat.
|
|
101
|
+
/** Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator right. Returns information about the created topic as a [ForumTopic](https://core.telegram.org/bots/api/#forumtopic) object. */
|
|
96
102
|
createForumTopic(params: Omit<t.CreateForumTopicParams, "chat_id">): Promise<t.ForumTopic>;
|
|
97
|
-
/** Use this method to edit name and icon of a topic in a forum supergroup chat.
|
|
103
|
+
/** Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
|
|
98
104
|
editForumTopic(params: Omit<t.EditForumTopicParams, "chat_id">): Promise<boolean>;
|
|
99
105
|
/** Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
|
|
100
106
|
closeForumTopic(params: Omit<t.CloseForumTopicParams, "chat_id">): Promise<boolean>;
|
|
101
107
|
/** Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights, unless it is the creator of the topic. Returns *True* on success. */
|
|
102
108
|
reopenForumTopic(params: Omit<t.ReopenForumTopicParams, "chat_id">): Promise<boolean>;
|
|
103
|
-
/** Use this method to delete a forum topic along with all its messages in a forum supergroup chat.
|
|
109
|
+
/** Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_delete\_messages* administrator rights. Returns *True* on success. */
|
|
104
110
|
deleteForumTopic(params: Omit<t.DeleteForumTopicParams, "chat_id">): Promise<boolean>;
|
|
105
|
-
/** Use this method to clear the list of pinned messages in a forum topic.
|
|
111
|
+
/** Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the *can\_pin\_messages* administrator right in the supergroup. Returns *True* on success. */
|
|
106
112
|
unpinAllForumTopicMessages(params: Omit<t.UnpinAllForumTopicMessagesParams, "chat_id">): Promise<boolean>;
|
|
107
113
|
/** Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can\_manage\_topics* administrator rights. Returns *True* on success. */
|
|
108
114
|
editGeneralForumTopic(params: Omit<t.EditGeneralForumTopicParams, "chat_id">): Promise<boolean>;
|
|
@@ -120,32 +126,50 @@ export declare class MessageReactionCountContext {
|
|
|
120
126
|
setChatMenuButton(params: Omit<t.SetChatMenuButtonParams, "chat_id">): Promise<boolean>;
|
|
121
127
|
/** Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns [MenuButton](https://core.telegram.org/bots/api/#menubutton) on success. */
|
|
122
128
|
getChatMenuButton(params?: Omit<t.GetChatMenuButtonParams, "chat_id">): Promise<t.MenuButton>;
|
|
123
|
-
/**
|
|
129
|
+
/** Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns *True* on success. */
|
|
130
|
+
sendGift(params: Omit<t.SendGiftParams, "chat_id">): Promise<boolean>;
|
|
131
|
+
/** Verifies a chat [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot. Returns *True* on success. */
|
|
132
|
+
verifyChat(params: Omit<t.VerifyChatParams, "chat_id">): Promise<boolean>;
|
|
133
|
+
/** Removes verification from a chat that is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
134
|
+
removeChatVerification(params?: Omit<t.RemoveChatVerificationParams, "chat_id">): Promise<boolean>;
|
|
135
|
+
/** Marks incoming message as read on behalf of a business account. Requires the *can\_read\_messages* business bot right. Returns *True* on success. */
|
|
136
|
+
readBusinessMessage(params: Omit<t.ReadBusinessMessageParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
137
|
+
/** Returns the gifts owned by a chat. Returns [OwnedGifts](https://core.telegram.org/bots/api/#ownedgifts) on success. */
|
|
138
|
+
getChatGifts(params: Omit<t.GetChatGiftsParams, "chat_id">): Promise<t.OwnedGifts>;
|
|
139
|
+
/** Use this method to edit text, rich and [game](https://core.telegram.org/bots/api/#games) messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
|
|
124
140
|
editText(params: Omit<t.EditMessageTextParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
125
141
|
/** Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
|
|
126
142
|
editCaption(params: Omit<t.EditMessageCaptionParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
127
|
-
/** Use this method to edit animation, audio, document, photo, or video messages, or to
|
|
143
|
+
/** Use this method to edit animation, audio, document, live photo, photo, or video messages, or to replace a text or a rich message with a media. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo, a live photo, or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
|
|
128
144
|
editMedia(params: Omit<t.EditMessageMediaParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
129
145
|
/** Use this method to edit live location messages. A location can be edited until its *live\_period* expires or editing is explicitly disabled by a call to [stopMessageLiveLocation](https://core.telegram.org/bots/api/#stopmessagelivelocation). On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
|
|
130
146
|
editLiveLocation(params: Omit<t.EditMessageLiveLocationParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
131
147
|
/** Use this method to stop updating a live location message before *live\_period* expires. On success, if the message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. */
|
|
132
148
|
stopMessageLiveLocation(params: Omit<t.StopMessageLiveLocationParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
149
|
+
/** Use this method to edit a checklist on behalf of a connected business account. On success, the edited [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
150
|
+
editMessageChecklist(params: Omit<t.EditMessageChecklistParams, "chat_id" | "message_id">): Promise<t.Message>;
|
|
133
151
|
/** Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api/#message) is returned, otherwise *True* is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent. */
|
|
134
152
|
editReplyMarkup(params: Omit<t.EditMessageReplyMarkupParams, "chat_id" | "message_id">): Promise<boolean | t.Message>;
|
|
135
153
|
/** Use this method to stop a poll which was sent by the bot. On success, the stopped [Poll](https://core.telegram.org/bots/api/#poll) is returned. */
|
|
136
154
|
stopPoll(params: Omit<t.StopPollParams, "chat_id" | "message_id">): Promise<t.Poll>;
|
|
137
|
-
/** Use this method to
|
|
155
|
+
/** Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns *True* on success. */
|
|
156
|
+
approveSuggestedPost(params: Omit<t.ApproveSuggestedPostParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
157
|
+
/** Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns *True* on success. */
|
|
158
|
+
declineSuggestedPost(params: Omit<t.DeclineSuggestedPostParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
159
|
+
/** Use this method to delete a message, including service messages, with the following limitations: - A message can only be deleted if it was sent less than 48 hours ago. - Service messages about a supergroup, channel, or forum topic creation can't be deleted. - A dice message in a private chat can only be deleted if it was sent more than 24 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. - Bots can delete incoming messages in private chats. - Bots granted *can\_post\_messages* permissions can delete outgoing messages in channels. - If the bot is an administrator of a group, it can delete any message there. - If the bot has *can\_delete\_messages* administrator right in a supergroup or a channel, it can delete any message there. - If the bot has *can\_manage\_direct\_messages* administrator right in a channel, it can delete any message in the corresponding direct messages chat. Returns *True* on success. */
|
|
138
160
|
delete(params?: Omit<t.DeleteMessageParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
139
161
|
/** Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns *True* on success. */
|
|
140
162
|
deleteMessages(params: Omit<t.DeleteMessagesParams, "chat_id">): Promise<boolean>;
|
|
163
|
+
/** Use this method to remove a reaction from a message in a group or a supergroup chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns *True* on success. */
|
|
164
|
+
deleteMessageReaction(params: Omit<t.DeleteMessageReactionParams, "chat_id" | "message_id">): Promise<boolean>;
|
|
165
|
+
/** Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the 'can_delete_messages' administrator right in the chat. Returns *True* on success. */
|
|
166
|
+
deleteAllMessageReactions(params: Omit<t.DeleteAllMessageReactionsParams, "chat_id">): Promise<boolean>;
|
|
141
167
|
/** Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
142
168
|
sendSticker(params: Omit<t.SendStickerParams, "chat_id">): Promise<t.Message>;
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
|
|
147
|
-
/** Removes verification from a chat that is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) represented by the bot. Returns *True* on success. */
|
|
148
|
-
removeChatVerification(params?: Omit<t.RemoveChatVerificationParams, "chat_id">): Promise<boolean>;
|
|
169
|
+
/** Use this method to send rich messages. If the message contains a block with a media element, then the bot must have the right to send the media to the chat. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
170
|
+
sendRichMessage(params: Omit<t.SendRichMessageParams, "chat_id">): Promise<t.Message>;
|
|
171
|
+
/** Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you **must** call [sendRichMessage](https://core.telegram.org/bots/api/#sendrichmessage) with the complete message to persist it in the user's chat. Returns *True* on success. */
|
|
172
|
+
sendRichMessageDraft(params: Omit<t.SendRichMessageDraftParams, "chat_id">): Promise<boolean>;
|
|
149
173
|
/** Use this method to send invoices. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
150
174
|
sendInvoice(params: Omit<t.SendInvoiceParams, "chat_id">): Promise<t.Message>;
|
|
151
175
|
/** Use this method to send a game. On success, the sent [Message](https://core.telegram.org/bots/api/#message) is returned. */
|
|
@@ -1 +1 @@
|
|
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