Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/tl/2_types.ts>SponsoredMessage

An attempt to write a Deno-native MTProto client
Go to Latest
class SponsoredMessage
import { SponsoredMessage } from "https://deno.land/x/mtkruto@0.0.62/tl/2_types.ts";

Constructors

new
SponsoredMessage(params: { recommended?: true; showPeerPhoto?: true; randomId: Uint8Array; fromId?: TypePeer; chatInvite?: TypeChatInvite; chatInviteHash?: string; channelPost?: number; startParam?: string; message: string; entities?: Array<TypeMessageEntity>; sponsorInfo?: string; additionalInfo?: string; })

Properties

protected
readonly
[id]
protected
readonly
[params]: Params
optional
additionalInfo: string
optional
channelPost: number
optional
chatInvite: TypeChatInvite
optional
chatInviteHash: string
optional
entities: Array<TypeMessageEntity>
optional
fromId: TypePeer
message: string
randomId: Uint8Array
optional
showPeerPhoto: true
optional
sponsorInfo: string
optional
startParam: string

Static Properties

readonly
[paramDesc]: ParamDesc