telegram

telegram 是一个流行的聊天 app.

  • 群组
  • 频道
  • 私聊
  1. 在 tg 搜索 @BotFather 然后创建机器人后得到
    • 机器人名称 pusher, 用于你在添加到 group , channel 时候搜索
    • apitoken 用于发送消息
  2. 在 group, channel 里添加搜索机器人 pusher
  • 自己的 userid:
    • 搜索 get_id_bot 机器人. 输入 /start 就会响应你的 id
    • 和你自己的叫人对话. https://api.tg域名.org/bot<apiToken>/getUpdates 就会有 message.from.id
  • 群组的 chatid
    • get_id_bot 机器人拉到群组. 和它说点什么, 就会响应 chatid
    • 和你自己的叫人对话. https://api.tg域名.org/bot<apiToken>/getUpdates 就会有 message.chat.id
  • 频道
    • public channel 的话, chat id 就是频道的名字. 比如你的频道地址是 t.me/kentxxq-public-pusher, 你的 chat id 就是 @kentxxq-public-pusher
    • private channel
      • 和你自己的叫人对话. https://api.tg域名.org/bot<apiToken>/getUpdates 里通过私有频道名称, 找到这个 json 结构体, 就可以拿到 chatid
      • @username_to_id_bot 拉进来, 然后把 邀请链接invite link 发到群里. 机器人就会把群的 chat_id 发出来, 然后移除@username_to_id_bot
      • get_id_bot 拉到群里, 发个消息即可

telegraph 是 telegram 推出的匿名博客平台. 地址 telegra.ph

  • 匿名, 不需要登录
  • 清空浏览器缓存就会丢失编辑权限
  • 可以绑定 telegram 账号
    • 添加 telegraph 机器人
    • account name 是帮助作者自己多个账号切换, 管理不同文章
    • author name 是文章公开的作者名, 对所有人公开
    • profile link 点击 author name 跳转到对应的地址, 例如 telegram 用户, 或者 group, channel