telegram_api_rs

Module objects

Source
Expand description

This module contains all available types to use the Bot API
All types have functions to create them from_json

let user = User::from_json(json_data);

or to turn them back into JSON-format

let json_data = user.to_json();

as well as creating empty objects (having all fields filled with default data)

let user = User::empty()

All types can also be displayed and cloned.

Structs§

Enums§