Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SponsoredMessage

Hierarchy

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { recommended?: boolean; showPeerPhoto?: boolean; randomId: Buffer; fromId?: TypePeer; chatInvite?: TypeChatInvite; chatInviteHash?: string; channelPost?: number; startParam?: string; webpage?: SponsoredWebPage; app?: Api.TypeBotApp; message: string; entities?: TypeMessageEntity[]; buttonText?: string; sponsorInfo?: string; additionalInfo?: string }

Type declaration

  • Optional recommended?: boolean
  • Optional showPeerPhoto?: boolean
  • randomId: Buffer
  • Optional fromId?: TypePeer
  • Optional chatInvite?: TypeChatInvite
  • Optional chatInviteHash?: string
  • Optional channelPost?: number
  • Optional startParam?: string
  • Optional webpage?: SponsoredWebPage
  • Optional app?: Api.TypeBotApp
  • message: string
  • Optional entities?: TypeMessageEntity[]
  • Optional buttonText?: string
  • Optional sponsorInfo?: string
  • Optional additionalInfo?: string
CONSTRUCTOR_ID: 3981673463
SUBCLASS_OF_ID: 3780630582
classType: "constructor"
className: "SponsoredMessage"
recommended?: boolean
showPeerPhoto?: boolean
randomId: Buffer
fromId?: TypePeer
chatInvite?: TypeChatInvite
chatInviteHash?: string
channelPost?: number
startParam?: string
message: string
entities?: TypeMessageEntity[]
buttonText?: string
sponsorInfo?: string
additionalInfo?: string

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { recommended?: boolean; showPeerPhoto?: boolean; randomId: Buffer; fromId?: TypePeer; chatInvite?: TypeChatInvite; chatInviteHash?: string; channelPost?: number; startParam?: string; webpage?: SponsoredWebPage; app?: Api.TypeBotApp; message: string; entities?: TypeMessageEntity[]; buttonText?: string; sponsorInfo?: string; additionalInfo?: string }

Constructors

Generated using TypeDoc