Class: Rubirai::FileMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/rubirai/messages/message.rb

Overview

The file message type

Instance Attribute Summary collapse

Attributes inherited from Message

#bot, #type

Method Summary

Methods inherited from Message

all_types, check_type, #to_h, to_message

Instance Attribute Details

#idString (readonly)

Returns the file id.

Returns:

  • (String)

    the file id



487
# File 'lib/rubirai/messages/message.rb', line 487

set_message :File, :id, :internal_id, :name, :size

#internal_idInteger (readonly)

Returns the internal id needed by server.

Returns:

  • (Integer)

    the internal id needed by server



487
# File 'lib/rubirai/messages/message.rb', line 487

set_message :File, :id, :internal_id, :name, :size

#nameString (readonly)

Returns the filename.

Returns:

  • (String)

    the filename



487
# File 'lib/rubirai/messages/message.rb', line 487

set_message :File, :id, :internal_id, :name, :size

#sizeInteger (readonly)

Returns the file size.

Returns:

  • (Integer)

    the file size



487
# File 'lib/rubirai/messages/message.rb', line 487

set_message :File, :id, :internal_id, :name, :size