Skip to main content

bot

Attribute Macro bot 

Source
#[bot]
Expand description

Attribute macro for decorating bot entrypoints and definitions.

Reserved for high-level declarative bot runtime setups.

§Examples

ⓘ
#[telegram_rs_2::bot]
async fn my_bot() {
    // Bot setup
}