[][src]Module vk_bot::bot

The Bot struct and server setup.

Structs

Bot

Bot represents a chat bot, and hands received requests to Core.

Constants

VK_OK

The string ok which needs to be sent in response to every Callback API request.

Statics

static_rocket_route_info_for_get

Rocket code generated static route info.

static_rocket_route_info_for_post

Rocket code generated static route info.

Functions

get

Handles GET requests by returning [rocket::http::Status::MethodNotAllowed].

post

Handles POST requests by first checking that secret and group ID are correct, and then responds with either confirmation token (if that is what was requested) or VK_OK in the other case.

rocket_route_fn_get

Rocket code generated wrapping route function.

rocket_route_fn_post

Rocket code generated wrapping route function.