소스 검색

TypeError: __init__() missing 1 required keyword-only argument: 'hash' (#146)

Juan 4 년 전
부모
커밋
a73c82c909
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      wbb/utils/stickerset.py

+ 1 - 1
wbb/utils/stickerset.py

@@ -32,7 +32,7 @@ async def get_sticker_set_by_name(
     try:
         return await client.send(
             raw.functions.messages.GetStickerSet(
-                stickerset=raw.types.InputStickerSetShortName(short_name=name)
+                stickerset=raw.types.InputStickerSetShortName(short_name=name), hash=0,
             )
         )
     except errors.exceptions.not_acceptable_406.StickersetInvalid: