Class: TD::Types::BusinessAwayMessageSettings

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

Overview

Describes settings for messages that are automatically sent by a Telegram Business account when it is away.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#offline_onlyBoolean

True, if the messages must not be sent if the account was online in the last 10 minutes.

Returns:

  • (Boolean)

    the current value of offline_only



9
10
11
# File 'lib/tdlib/types/business_away_message_settings.rb', line 9

def offline_only
  @offline_only
end

#recipientsTD::Types::BusinessRecipients

Chosen recipients of the away messages.

Returns:



9
10
11
# File 'lib/tdlib/types/business_away_message_settings.rb', line 9

def recipients
  @recipients
end

#scheduleTD::Types::BusinessAwayMessageSchedule

Settings used to check whether the current user is away.

Returns:



9
10
11
# File 'lib/tdlib/types/business_away_message_settings.rb', line 9

def schedule
  @schedule
end

#shortcut_idInteger

Unique quick reply shortcut identifier for the away messages.

Returns:

  • (Integer)

    the current value of shortcut_id



9
10
11
# File 'lib/tdlib/types/business_away_message_settings.rb', line 9

def shortcut_id
  @shortcut_id
end