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

Метод send #15

Closed
proton opened this issue Feb 24, 2013 · 1 comment
Closed

Метод send #15

proton opened this issue Feb 24, 2013 · 1 comment

Comments

@proton
Copy link

proton commented Feb 24, 2013

vk.messages.send(message: 'message')

Выдаёт

TypeError: {:message=>"message"} is not a symbol

Так понимаю, что проблема в том, что вызывается стандартный метод send, а не метод 'send' из api vkontakte

Прошу подсказать простой хак)

@7even
Copy link
Owner

7even commented Feb 24, 2013

Да, дело именно в этом. Наверно, в будущих версиях vkontakte_api это будет исправлено.

Хак для нынешней версии:

vk = VkontakteApi::Client.new
VkontakteApi::Method.new('send', resolver: vk.messages).call(message: 'message')

@7even 7even closed this as completed Feb 24, 2013
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

2 participants