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:
parent
fb7d60f09d
commit
d12ea91e12
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user