Class: TD::Types::MessageSendOptions

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/message_send_options.rb

Overview

Options to be used when a message is sent.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#disable_notificationBoolean

Pass true to disable notification for the message.

Returns:

  • (Boolean)

    the current value of disable_notification



8
9
10
# File 'lib/tdlib/types/message_send_options.rb', line 8

def disable_notification
  @disable_notification
end

#from_backgroundBoolean

Pass true if the message is sent from the background.

Returns:

  • (Boolean)

    the current value of from_background



8
9
10
# File 'lib/tdlib/types/message_send_options.rb', line 8

def from_background
  @from_background
end

#scheduling_stateTD::Types::MessageSchedulingState

Message scheduling state. Messages sent to a secret chat, live location messages and self-destructing messages can’t be scheduled.

Returns:



8
9
10
# File 'lib/tdlib/types/message_send_options.rb', line 8

def scheduling_state
  @scheduling_state
end