Class: TD::Types::PushMessageContent::Game

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_message_content/game.rb

Overview

A message with a game.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_pinnedBoolean

True, if the message is a pinned message with the specified content.

Returns:

  • (Boolean)

    the current value of is_pinned



6
7
8
# File 'lib/tdlib/types/push_message_content/game.rb', line 6

def is_pinned
  @is_pinned
end

#titleTD::Types::String?

Game title, empty for pinned game message.

Returns:

  • (TD::Types::String, nil)

    the current value of title



6
7
8
# File 'lib/tdlib/types/push_message_content/game.rb', line 6

def title
  @title
end