Crate tma_init_data

Source

Structs§

  • Describes the chat information. https://docs.telegram-mini-apps.com/platform/init-data#chat
  • Contains launch parameters data https://docs.telegram-mini-apps.com/platform/init-data#parameters-list
  • Describes user information: https://docs.telegram-mini-apps.com/launch-parameters/init-data#user

Enums§

Functions§

  • Converts passed init data presented as query string to InitData object.
  • Sign signs passed payload using specified key. Function removes such technical parameters as “hash” and “auth_date”.
  • Validates passed init data. This method expects initData to be passed in the exact raw format as it could be found in window.Telegram.WebApp.initData. Returns Ok in case init data is signed correctly, and it is allowed to trust it.