你好,收割机!你好,收割机!
首页
收割机
通用教程
首页
收割机
通用教程
  • 收割机

    • 01. 收割机简介
    • 02. 安装教程
    • 03. 站点导入
    • 04. 使用指南
    • 05. 常见问题
    • 06. SSH 使用
    • 07. 企业微信
    • 08. 自行适配
    • 09. 自定义主题
  • 通用教程

    • 阿里云盘
    • 百度 OCR
    • CookieCloud
    • Django 密码错误处理
    • Tailscale 内网互访
    • Telegram 机器人
    • 各种 NAS 进入容器命令行
    • 常用内网穿透

Telegram机器人

申请TOKEN

  1. 首先在 telegram 中搜索 botfather,并和 botfather 开始对话:

    img_6.png

  2. 按下 "/start" 之后,botfather 会回复如下信息:

    img_5.png

  3. 紧接着回复 "/newbot" 开始创建你的 bot,botfather 会要求你输入 bot 的名字和 bot 用户名,bot 名会显示在搜索界面,而 bot 的 username 在搜索 bot 和添加 bot 入 group 的时候会起作用(你无法通过搜索 bot 名来添加 bot 如群组)。username 必须以 bot 或者_bot(不区分大小写)结尾:如 ABCBot,ABC_bot。

    img_6.png

  4. 完成了这两项后,botfather 会给你 bot 专属的 token:

    img_7.png

获取chat_id

  1. 搜索添加机器人:@getidsbot

    img_8.png

  2. 点击/start

    img_9.png

  3. 获取ID,ID后面的一串红色数字,就是你的ID

    img_10.png

最近更新: 2025/12/2 12:51
Contributors: ngfchl
Prev
Tailscale 内网互访
Next
各种 NAS 进入容器命令行