Compare commits

...

3 Commits

Author SHA1 Message Date
Badiboy 80c1a4798d
Merge pull request #1921 from zeldpol/patch-1
Fix .webm upload
2023-02-18 23:46:03 +03:00
Dmitry 7a67d5f9f9
Fix .webm async upload 2023-02-18 22:36:29 +02:00
zeldpol d12ea91e12
Fix .webm upload
No need to pass file content as a header, it causes the http error "431 Request Header Fields Too Large".
2023-02-17 19:23:11 +02:00
2 changed files with 0 additions and 4 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')

View File

@ -1601,8 +1601,6 @@ async 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 await _process_request(token, method_url, params=payload, files=files, method='post')