1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

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

View File

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