小编Lui*_*ali的帖子

如何编写脚本以通过电报 cli 发送消息?

我不知道如何解释自己,但我需要通过电报发送预定的消息,所以我下载了电报客户端以通过终端发送消息。我写了一个打开客户端的 bash 脚本,这里的一切都按计划进行,然后它打开电报命令行,我的脚本没有相应地运行。我怎样才能工作?

这是电报命令行

这是脚本,没什么难的:

#!/bin/bash
cd /home/ospite/tg
bin/telegram-cli -k tg-server.pub //opening telegram client
sleep 30
chat_with_peer Antonio //it doesn't work because it's not the debian shell anymore
done
Run Code Online (Sandbox Code Playgroud)

command-line bash scripts schedule telegram

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

bash ×1

command-line ×1

schedule ×1

scripts ×1

telegram ×1