用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/first-fluke/cratos --skill telegram-integration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | Telegram Integration |
| description | This skill should be used when implementing Telegram bot functionality using teloxide. |
| version | 1.0.0 |
teloxide를 사용한 Telegram Bot 연동.
use teloxide::prelude::*;
#[tokio::main]
async fn main() {
let bot = Bot::from_env();
teloxide::repl(bot, |bot: Bot, msg: Message| async move {
bot.send_message(msg.chat.id, "Hello!").await?;
Ok(())
})
.await;
}
TELOXIDE_TOKEN=your_bot_token
fn normalize_telegram_message(msg: &Message) -> NormalizedMessage {
NormalizedMessage {
id: Uuid::new_v4(),
channel: Channel::Telegram { chat_id: msg.chat.id.0 },
user_id: msg.from().map(|u| u.id.0.to_string()).unwrap_or_default(),
text: msg.text().unwrap_or_default().to_string(),
timestamp: Utc::now(),
}
}
use governor::{Quota, RateLimiter};
use std::num::NonZeroU32;
// Telegram: 30 msg/sec (global), 1 msg/sec (per chat)
let limiter = RateLimiter::direct(
Quota::per_second(NonZeroU32::new(30).unwrap())
);
.cratos/skills/channel-agent/resources/telegram-guide.md