Skip to content

GramIO API Reference / @gramio/contexts/dist / DirectMessagePriceChanged

Class: DirectMessagePriceChanged

Defined in: contexts/index.d.ts:1686

Describes a service message about a change in the price of direct messages sent to a channel chat.

Documentation

Constructors

Constructor

new DirectMessagePriceChanged(payload): DirectMessagePriceChanged

Defined in: contexts/index.d.ts:1688

Parameters

ParameterType
payloadTelegramDirectMessagePriceChanged

Returns

DirectMessagePriceChanged

Properties

PropertyTypeDefined in
payloadTelegramDirectMessagePriceChangedcontexts/index.d.ts:1687

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:1689

Returns

string


areDirectMessagesEnabled

Get Signature

get areDirectMessagesEnabled(): boolean

Defined in: contexts/index.d.ts:1693

True, if direct messages are enabled for the channel chat; false otherwise

Returns

boolean


directMessageStarCount

Get Signature

get directMessageStarCount(): number

Defined in: contexts/index.d.ts:1697

Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.

Returns

number