Class: TD::Types::BusinessInfo

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

Overview

Contains information about a Telegram Business account.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#away_message_settingsTD::Types::BusinessAwayMessageSettings?

The away message; may be null if none or the Business account is not of the current user.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def away_message_settings
  @away_message_settings
end

#greeting_message_settingsTD::Types::BusinessGreetingMessageSettings?

The greeting message; may be null if none or the Business account is not of the current user.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def greeting_message_settings
  @greeting_message_settings
end

#local_opening_hoursTD::Types::BusinessOpeningHours?

Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and has already been split by week days. Local time zone identifier will be empty. An Update::UserFullInfo update is not triggered when value of this field changes.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def local_opening_hours
  @local_opening_hours
end

#locationTD::Types::BusinessLocation?

Location of the business; may be null if none.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def location
  @location
end

#next_close_inInteger

Time left before the business will close the next time, in seconds; 0 if unknown. An Update::UserFullInfo update is not triggered when value of this field changes.

Returns:

  • (Integer)

    the current value of next_close_in



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def next_close_in
  @next_close_in
end

#next_open_inInteger

Time left before the business will open the next time, in seconds; 0 if unknown. An Update::UserFullInfo update is not triggered when value of this field changes.

Returns:

  • (Integer)

    the current value of next_open_in



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def next_open_in
  @next_open_in
end

#opening_hoursTD::Types::BusinessOpeningHours?

Opening hours of the business; may be null if none. The hours are guaranteed to be valid and has already been split by week days.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def opening_hours
  @opening_hours
end

#start_pageTD::Types::BusinessStartPage?

Information about start page of the account; may be null if none.

Returns:



22
23
24
# File 'lib/tdlib/types/business_info.rb', line 22

def start_page
  @start_page
end