Class: TelegramBotEngine::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram_bot_engine/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
# File 'lib/telegram_bot_engine/configuration.rb', line 8

def initialize
  @allowed_usernames = nil
  @admin_enabled = true
  @unauthorized_message = "Sorry, you're not authorized to use this bot."
  @welcome_message = "Welcome %{username}! Available commands:\n%{commands}"
  @event_logging = true
  @event_retention_days = 30
end

Instance Attribute Details

#admin_enabledObject

Returns the value of attribute admin_enabled.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def admin_enabled
  @admin_enabled
end

#allowed_usernamesObject

Returns the value of attribute allowed_usernames.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def allowed_usernames
  @allowed_usernames
end

#event_loggingObject

Returns the value of attribute event_logging.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def event_logging
  @event_logging
end

#event_retention_daysObject

Returns the value of attribute event_retention_days.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def event_retention_days
  @event_retention_days
end

#unauthorized_messageObject

Returns the value of attribute unauthorized_message.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def unauthorized_message
  @unauthorized_message
end

#welcome_messageObject

Returns the value of attribute welcome_message.



5
6
7
# File 'lib/telegram_bot_engine/configuration.rb', line 5

def welcome_message
  @welcome_message
end