Method: TelegramBot::ChatBoost#valid?

Defined in:
lib/telegram-bot/models/chat_boost.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



128
129
130
131
132
133
134
135
# File 'lib/telegram-bot/models/chat_boost.rb', line 128

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @boost_id.nil?
  return false if @add_date.nil?
  return false if @expiration_date.nil?
  return false if @source.nil?
  true
end