Skip to main content

Module request_parameter

Module request_parameter 

Source
Expand description

A single parameter in a Telegram Bot API request.

This mirrors telegram.request.RequestParameter from python-telegram-bot. The Python class handles many Telegram-specific helper types (InputFile, InputMedia, TelegramObject, …) during conversion. In the Rust port those domain types will eventually convert themselves into a RequestParameter via From/Into implementations; until the full type layer exists the value is kept as a raw serde_json::Value together with an optional list of attached binary files.

Structs§

InputFileRef
Metadata for a single file that is uploaded as part of a multipart form.
RequestParameter
A single named parameter sent to the Telegram Bot API.