Skip to content

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

Class: DirectMessagePriceChanged ​

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

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

Parameters ​

ParameterType
payloadTelegramDirectMessagePriceChanged

Returns ​

DirectMessagePriceChanged

Properties ​

PropertyTypeDefined in
payloadTelegramDirectMessagePriceChangedcontexts/index.d.ts:1875

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

Returns ​

string


areDirectMessagesEnabled ​

Get Signature ​

get areDirectMessagesEnabled(): boolean

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

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

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