Skip to content
New issue

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

how to AddStickerToSetRequest parmas sticker telethon #4386

Open
2 tasks done
GodFatherClover opened this issue Jun 2, 2024 · 0 comments
Open
2 tasks done

how to AddStickerToSetRequest parmas sticker telethon #4386

GodFatherClover opened this issue Jun 2, 2024 · 0 comments

Comments

@GodFatherClover
Copy link

Description

how to AddStickerToSetRequest parmas sticker telethon

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.stickers.AddStickerToSetRequest(
stickerset=types.InputStickerSetID(
id=-12398745604826,
access_hash=-12398745604826
),
sticker=types.InputStickerSetItem(
document=types.InputDocument(
id=-12398745604826,
access_hash=-12398745604826,
file_reference=b'arbitrary\x7f data \xfa here'
),
emoji='some string here',
mask_coords=types.MaskCoords(
n=42,
x=7.13,
y=7.13,
zoom=7.13
),
keywords='some string here'
)
))
print(result.stringify())

i do not konw how to find types.InputStickerSetItem params

Checklist

  • This is a documentation problem, not a question or a bug report.
  • I have searched for this issue before posting it and there isn't a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant