Xyzol

文章 分类 评论
21 6 838

站点介绍

这里是站点介绍...

TG人形自走机器人项目PagerMaid安装

xyzol 2022-02-26 2644 67条评论 其它 查询收录失败

首页 / 正文
站点公告

发布于2022-01-09

在Telegram电报聊天的时候,我们有时候会看到一些神奇的骚操作。这些骚操作如何实现的呢?我们又如何自己部署一个像模像样的呢?这个项目叫做PagerMaid,是一种人形自走机器人。这篇文章来和大家一起部署一个Pagermaid人形自走机器人

感谢Xtao-Labs/PagerMaid-Modify项目组的付出

准备材料

  • 一台VPS,并重置为Debian / Ubuntu系统
  • Telegram官方申请的APP ID和APP HASH

申请Telegram APPID和APP HASH

以下两种方式均可用

通过Pagermaid官方bot获取

  1. 打开@PagerMaid_Modify_bot
  2. 输入/app命令
  3. 根据提示完成API创建操作

img

复制APP ID和APP HASH,备用

PS: 此方法经过PagermMaid项目组的验证,不保证对所有账号可用

通过Telegram官网获取

  1. 打开官网
  2. 输入手机号登录

img

点击“API development tools”

img

输入应用名称,可以随便填写,点击“Create application”创建应用

img

PS: 如果此步出现错误“ERROR”提示,请换用美国节点重试

复制APP ID和APP HASH,备用

img

手动部署PagerMaid

SSH登录至VPS
执行以下命令,安装依赖

apt-get update
apt-get install git imagemagick libzbar-dev neofetch tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim redis-server python3-pip -y
git clone https://gitlab.com/Xtao-Labs/pagermaid-modify.git pagermaid && cd pagermaid
pip3 install -r requirements.txt
cp config.gen.yml config.yml

编辑config.yml文件,替换为自己的APP ID和APP HASH

img

使用python3 -m pagermaid运行bot,进行授权登录

img

输入-help命令,查看运行状态

img

设置守护进程

cat <<'TEXT' > /etc/systemd/system/pagermaid.service
[Unit]
Description=PagerMaid-Modify telegram utility daemon
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
WorkingDirectory=/root/pagermaid
ExecStart=/usr/bin/python3 -m pagermaid
Restart=always
TEXT

PS: WorkingDirectory请按自己的环境配置

  1. 启动程序:systemctl start pagermaid
  2. 设置为开机自启:systemctl enable pagermaid
  3. 停止程序:systemctl stop pagermaid

原文地址: Misaka No

评论(67)

  1. RVhIcp 游客 2023-11-12 19:38 回复

    Intracellular magnesium and insulin resistance finasteride receding hairline ritonavir will increase the level or effect of ulipristal by affecting hepatic intestinal enzyme CYP3A4 metabolism

  2. CNC Machine For Surface milling in The Bathroom Industry 游客 2023-11-02 09:39 回复

  3. viagra and cialis online 游客 2023-08-22 15:35 回复

    I don't know if it's just me or if perhaps everyone else experiencing issues with your blog.
    It seems like some of the written text on your content are running off the screen. Can somebody else please comment and let me know if this is happening to them as well?

    This might be a problem with my browser because I've had this happen before.
    Appreciate it

  4. Dririup 游客 2023-05-23 11:19 回复

    viagra manufacturer Anyone that it take bromocriptine

  5. Roubbogma 游客 2023-05-07 17:15 回复

    male viagra pill walgreens The organic layer was separated, washed with brine, dried MgSO 4, filtered, and concentrated under reduced pressure

日历

2023年12月

     12
3456789
10111213141516
17181920212223
24252627282930
31      

文章目录

推荐关键字: docker项目 Typecho 一键 反向代理 bot sap

站点公告
站点公告
点击小铃铛关闭
配色方案