class Tourmaline::TransactionPartnerChat

Overview

Describes a transaction with a chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, chat : Tourmaline::Chat, gift : Tourmaline::Gift | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def chat : Tourmaline::Chat #

Information about the chat


[View source]
def chat=(chat : Tourmaline::Chat) #

Information about the chat


[View source]
def gift : Tourmaline::Gift | Nil #

Optional. The gift sent to the chat by the bot


[View source]
def gift=(gift : Tourmaline::Gift | Nil) #

Optional. The gift sent to the chat by the bot


[View source]
def type : String #

Type of the transaction partner, always "chat"


[View source]
def type=(type : String) #

Type of the transaction partner, always "chat"


[View source]