lib/telegram/bot/api.rb in telegram-bot-ruby-0.5.0.beta1 vs lib/telegram/bot/api.rb in telegram-bot-ruby-0.5.0.beta2

- old
+ new

@@ -79,15 +79,15 @@ jsonify_inline_query_results(jsonify_reply_markup(value)) end def jsonify_reply_markup(value) return value unless REPLY_MARKUP_TYPES.include?(value.class) - value.to_h.to_json + value.to_compact_hash.to_json end def jsonify_inline_query_results(value) return value unless value.is_a?(Array) && value.all? { |i| INLINE_QUERY_RESULT_TYPES.include?(i.class) } - value.map { |i| i.to_h.select { |_, v| v } }.to_json + value.map { |i| i.to_compact_hash.select { |_, v| v } }.to_json end def camelize(method_name) words = method_name.split('_') words.drop(1).map(&:capitalize!)