Skip to content

Расширить api новыми методами #247

Open
sasha-tlt opened this issue Dec 21, 2021 · 0 comments · May be fixed by #256
Open

Расширить api новыми методами #247

sasha-tlt opened this issue Dec 21, 2021 · 0 comments · May be fixed by #256

Comments

@sasha-tlt
Copy link
Contributor

sasha-tlt commented Dec 21, 2021

  • findInInitialData<T>({ type, command }: { type?: string; command?: string }): T | undefined - возвращает команду из appInitialData, не должен влиять на emit комманд из appInitialData
  • subscribeToCommand(dataType: AssistantDataType | string, cb: (payload: AssistantClientCommand) => void): () => void - позволяет подписаться на конкретный тип команды и вызовает cb когда команда получена
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant