@telegram.ts/types 1.14.0 → 1.14.2
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/package.json
CHANGED
package/src/apiMethodsTypes.d.ts
CHANGED
|
@@ -616,7 +616,7 @@ export type ApiMethods = {
|
|
|
616
616
|
sendPaidMedia(args: {
|
|
617
617
|
/** Unique identifier of the business connection on behalf of which the message will be sent */
|
|
618
618
|
business_connection_id?: string;
|
|
619
|
-
/** Unique identifier for the target chat or username of the target channel (in the format
|
|
619
|
+
/** Unique identifier for the target chat or username of the target channel (in the format `@channelusername`). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance */
|
|
620
620
|
chat_id: number | string;
|
|
621
621
|
/** The number of Telegram Stars that must be paid to buy access to the media */
|
|
622
622
|
star_count: number;
|
|
@@ -827,7 +827,7 @@ export type ApiMethods = {
|
|
|
827
827
|
chat_id: number | string;
|
|
828
828
|
/** Identifier of the target message */
|
|
829
829
|
message_id: number;
|
|
830
|
-
/** A list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. */
|
|
830
|
+
/** A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots. */
|
|
831
831
|
reaction?: ReactionType[];
|
|
832
832
|
/** Pass True to set the reaction with a big animation */
|
|
833
833
|
is_big?: boolean;
|
package/src/messageTypes.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export declare namespace Message {
|
|
|
15
15
|
message_id: number;
|
|
16
16
|
/** Unique identifier of a message thread or a forum topic to which the message belongs; for supergroups only */
|
|
17
17
|
message_thread_id?: number;
|
|
18
|
-
/** Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats
|
|
18
|
+
/** Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats. */
|
|
19
19
|
from?: User;
|
|
20
|
-
/** Sender of the message
|
|
20
|
+
/** Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field *from* contains a fake sender user in non-channel chats. */
|
|
21
21
|
sender_chat?: Chat;
|
|
22
22
|
/** Date the message was sent in Unix time. It is always a positive number, representing a valid date. */
|
|
23
23
|
date: number;
|
|
@@ -1428,7 +1428,7 @@ export interface ReactionTypeCustomEmoji {
|
|
|
1428
1428
|
/** Type of the reaction, always “custom_emoji” */
|
|
1429
1429
|
type: "custom_emoji";
|
|
1430
1430
|
/** Custom emoji identifier */
|
|
1431
|
-
|
|
1431
|
+
custom_emoji_id: string;
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
/** The reaction is paid. */
|