1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Procedural macros for `telegram-rs`.
//!
//! Provides attribute macros for declarative bot creation and command routing.
use TokenStream;
use quote;
use parse_macro_input;
/// Attribute macro for decorating bot entrypoints and definitions.
///
/// Reserved for high-level declarative bot runtime setups.
///
/// # Examples
///
/// ```ignore
/// #[telegram_rs_2::bot]
/// async fn my_bot() {
/// // Bot setup
/// }
/// ```
/// Attribute macro for declaring Telegram bot command handler functions.
///
/// Wraps a command handler function, enabling automated routing and metadata extraction.
///
/// # Examples
///
/// ```ignore
/// #[telegram_rs_2::command("/start")]
/// async fn handle_start(bot: Bot, msg: Message) {
/// // Handle /start
/// }
/// ```