class SponsoredMessage_
extends _SponsoredMessage_
import { SponsoredMessage_ } from "https://deno.land/x/mtkruto@0.1.157/tl/2_types.ts";
Constructors
new
SponsoredMessage_(params: { recommended?: true; show_peer_photo?: true; random_id: Uint8Array; from_id?: enums.Peer; chat_invite?: enums.ChatInvite; chat_invite_hash?: string; channel_post?: number; start_param?: string; webpage?: enums.SponsoredWebPage; app?: enums.BotApp; message: string; entities?: Array<enums.MessageEntity>; button_text?: string; sponsor_info?: string; additional_info?: string; })Properties
protected
readonly
[params]: ParamsIf set, contains additional information about the sponsored message to be shown along with the message.
Mini App » to open when the sponsored message is clicked.
Information about the chat invite hash specified in chat_invite_hash
Whether the message needs to be labeled as "recommended" instead of "sponsored"
Whether a profile photo bubble should be displayed for this message, like for messages sent in groups. The photo shown in the bubble is obtained either from the peer contained in from_id
, or from chat_invite
.
If set, contains additional information about the sponsor to be shown along with the message.
Parameter for the bot start message if the sponsored chat is a chat with a bot.
Static Properties
readonly
[paramDesc]: ParamDesc