Fix .webm upload

No need to pass file content as a header, it causes the http error "431 Request Header Fields Too Large".
This commit is contained in:
zeldpol 2023-02-17 19:23:11 +02:00 committed by GitHub
parent fb7d60f09d
commit d12ea91e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -1612,8 +1612,6 @@ def create_new_sticker_set(
payload[stype] = sticker
if mask_position:
payload['mask_position'] = mask_position.to_json()
if webm_sticker:
payload['webm_sticker'] = webm_sticker
if sticker_type:
payload['sticker_type'] = sticker_type
return _make_request(token, method_url, params=payload, files=files, method='post')