Expand description
§VK Teams Bot API client
This crate provides a client for the VK Teams Bot API V1.
Asynchronous request is based on reqwest and tokio.
JSON Serialization and Deserialization serde_json.
Serialization Url query is based on serde_url_params.
[dependencies]
vkteams_bot = "0.9"
log = "0.4"Re-exports§
pub use self::bot::Bot;
Modules§
Macros§
Structs§
- Button
Keyboard - Keyboard for send message methods One of variants must be set:
- Chat
- Chat struct
- ChatId
- Chat id struct
- Event
Message - Event message
- Event
Payload NewMessage - Message payload event type newMessage
- From
- From struct
- Keyboard
- Array of keyboard buttons
- MsgId
- Message id struct
- Timestamp
- Timestamp struct
- UserId
- User id struct
Enums§
- ApiResponse
Wrapper - Button
Style - Keyboard buttons style
- Event
Type - Event types
Constants§
- VKTEAMS_
BOT_ API_ TOKEN - Environment variable name for bot API token
- VKTEAMS_
BOT_ API_ URL - Environment variable name for bot API URL