In the new Telegram update, it is possible for premium users to install emoji status. Is it possible to implement this through Telethon?
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
This will be possible once v1.26 is released (which isn’t at the time of writing) once this PR is merged. If you install the development version with these changes, or your Telethon version is v1.26 or higher, you can use
telethon.tl.functions.account.UpdateEmojiStatusRequest
to change your status. It will require atelethon.tl.types.EmojiStatus
instance, which itself requires thedocument_id
of the emoji you want.I believe it’d be actually like that:
because UpdateEmojiStatusRequest expects a
types.EmojiStatus
, not s string – according to https://github.com/telegramdesktop/tdesktop/blob/2a6e2fa353d5c4b7ab6a05eef5ce8952c78c2a73/Telegram/Resources/tl/api.tl#L1557