Skip to content

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

Class: DirectMessagePriceChanged

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

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:2503

Parameters

ParameterType
payloadTelegramDirectMessagePriceChanged

Returns

DirectMessagePriceChanged

Properties

PropertyTypeDefined in
payloadTelegramDirectMessagePriceChangedcontexts/index.d.ts:2502

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


areDirectMessagesEnabled

Get Signature

get areDirectMessagesEnabled(): boolean

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

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:2512

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