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

Новая возможность: трансляция в вкскрипт для метода execute #102

Closed
timoniq opened this issue May 12, 2020 · 0 comments
Assignees
Labels
feature-request New feature or request

Comments

@timoniq
Copy link
Member

timoniq commented May 12, 2020

Опишите решение, которое вы бы хотели видеть
Хендлер, транслирующий код в vkscript для последующего вызова

Опишите решения, которые вы временно предприняли для решения этого вопроса
Просто сохраняя код в отдельных файлах .vkscript или в строках

[Дополнительно] Пример псевдокода

@vkscript
def code(api: API):
    names = []
    for user in api.users.get(user_ids=[1, 2, 3]):
        names.append(user.first_name)
    return names

Далее просто:

await api.execute(code)
@timoniq timoniq added the feature-request New feature or request label May 12, 2020
@timoniq timoniq self-assigned this May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant