class Hamilton::Types::DirectMessagePriceChanged

Overview

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

Included Modules

Defined in:

types/direct_message_price_changed.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def are_direct_messages_enabled : Bool #

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


def are_direct_messages_enabled=(are_direct_messages_enabled : Bool) #

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


def direct_message_star_count : Int32 | Nil #

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.


def direct_message_star_count=(direct_message_star_count : Int32 | Nil) #

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.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.