Skip to content

Commit 8194094

Browse files
authored
fix: Windows's File.join uses \\ instead of / so it breaks API calls. (#65)
1 parent f8de7f6 commit 8194094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tourmaline/client.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module Tourmaline
162162

163163
# Sends a request to the Telegram Client API. Returns the raw response.
164164
def request_raw(method : String, params = {} of String => String)
165-
path = ::File.join("/bot#{bot_token}", method)
165+
path = "/bot#{bot_token}/#{method}"
166166
request_internal(path, params, multipart: MULTIPART_METHODS.includes?(method))
167167
end
168168

0 commit comments

Comments
 (0)