当前位置:   article > 正文

java 实现 Telegram-Bot_java接入telegerame机器人

java接入telegerame机器人

Telegram-Bot

免费的机器人
  1. @qunbot
    管理后台 https://qun.tg/admin/chats/-1002040530735/welcome
    在这里插入图片描述
  2. @hao12bot (https://t.me/hao12bot)
    在这里插入图片描述
  3. nmBot Telegram 帮助文档
    在这里插入图片描述
介绍

telegram 机器人开发

示例

在这里插入图片描述

使用

把变量tokenusername 替换为自己的内容

本地

如果是在本地跑的话,需要开启代理 vpn

Replit

不要试图在国内的服务器跑,国内服务器连接不是telegram

创建 Telegram Bot

先给 BotFather 发送指令

/newbot
  • 1

发送机器人名字

上一步后回应:
Alright, a new bot. How are we going to call it? Please choose a name for your bot.

比如叫 小艾 就发送 小艾
  • 1

给机器人起用户名

上一步回复:Good. Now let’s choose a username for your bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot.

发送一个机器人用户
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/506012
    推荐阅读
    相关标签
      

    闽ICP备14008679号