We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for attr in message.sticker.attributes: if isinstance(attr, types.DocumentAttributeSticker): if type(attr.stickerset) is InputStickerSetID: sticker_id = attr.stickerset.id sticker_access_hash = attr.stickerset.access_hash result = await client(functions.stickers.AddStickerToSetRequest( stickerset=types.InputStickerSetID( id=sticker_id, access_hash=sticker_access_hash, ), sticker=types.InputStickerSetItem( document=types.InputDocument( id=message.sticker.id, access_hash=message.sticker.access_hash, file_reference=message.sticker.file_reference ), emoji='some string here', ) )) print(result.stringify())
AddStickerToSetRequest success
The provided sticker set is invalid (caused by AddStickerToSetRequest)
No response
1.35
3.11
windows 11
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
The text was updated successfully, but these errors were encountered:
the message.sticker is above picture show
Sorry, something went wrong.
No branches or pull requests
Code that causes the issue
Expected behavior
AddStickerToSetRequest success
Actual behavior
The provided sticker set is invalid (caused by AddStickerToSetRequest)
Traceback
No response
Telethon version
1.35
Python version
3.11
Operating system (including distribution name and version)
windows 11
Other details
No response
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: