We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
После отправки сообщения ботом вызывается исключение, сообщение приходит, после этого бот не реагирует.
Метод не найден: "Void VkNet.Model.RequestParams.MessagesSendParams.set_RandomId(Int64)"
public static void messageReceived(object sender, MessageReceivedEventArgs eventArgs) { VkBot vk = sender as VkBot; var peerId = eventArgs.Message.PeerId != null ? eventArgs.Message.PeerId : eventArgs.Message.UserId; var fromId = eventArgs.Message.FromId != null ? eventArgs.Message.FromId : eventArgs.Message.UserId; var text = eventArgs.Message.Body != null ? eventArgs.Message.Body : "Ошибка!"; if (peerId != fromId) { // беседа } else { MessagesSendParams message = new MessagesSendParams(); message.Message = text; message.RandomId = Environment.TickCount; message.UserId = fromId; vk.Api.Messages.Send(message); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
После отправки сообщения ботом вызывается исключение, сообщение приходит, после этого бот не реагирует.
Метод не найден: "Void VkNet.Model.RequestParams.MessagesSendParams.set_RandomId(Int64)"
The text was updated successfully, but these errors were encountered: