bin/fetch-telegram-methods in telegram-bot-0.14.4 vs bin/fetch-telegram-methods in telegram-bot-0.15.0

- old
+ new

@@ -23,10 +23,10 @@ # Filter method names. method_list = headers. map { |g| g.reject { |x| x.match?(NOT_METHOD_REGEXP) } }. reject(&:empty?) -api_version = doc.text.match(/^(Bot API ([\d\.]+))\.?$/) +api_version = doc.text.match(/^(?:Introducing )?(Bot API ([\d\.]+))\.?$/) result = ['# Generated with bin/fetch-telegram-methods'] result << "# #{api_version[1]}" if api_version result << '' result << method_list.map { |g| g.join("\n") }.join("\n\n")