Chrome插件二次修改 避免报错提示被修改
在本地文件找到插件复制到新的文件夹。
删除metadata前下划线
其他内容按照你想的更改
最后把文件夹拖到扩展里面
不会提示报错√
(我也把manifest.json里的key给删了。)
在本地文件找到插件复制到新的文件夹。
删除metadata前下划线
其他内容按照你想的更改
最后把文件夹拖到扩展里面
不会提示报错√
(我也把manifest.json里的key给删了。)

【由于telegram官方禁止了两个机器人之间相互接收消息,此方法失效!】不过还是可以单方面互联的
比如说telegram+IRC 或是 IRC+qq之类的
(用于QQ单方面监听微信消息,本次是为了监控我们班家长微信群,特别想的)
| 耗时:三个星期六,很正常的耗时 |
基本想法:
QQ通过IRCshell插件开一个IRC服务器,然后IRC和telegram互联,telegram和wechat用ehforwarderbot连接。IRC和TELEGRAM通过引用的第一个项目进行消息阻断。
涉及到的语言:python, Rust, perl
过程暂仅支持文字传输,QQ群连接telegram1号群进行微信消息的接收
QQ群聊天内容将转移telegram2号群进行消息阻断不会发到微信群
引用github项目:
我参考了这些教程:
http://doc.crates.io/guide.html:为了运行第一个单方面监控项目参考的教程
http://rustbyexample.com/hello.html:为了运行第一个单方面监控项目参考的教程
https://blog.1a23.com/2017/01/09/EFB-How-to-Send-and-Receive-Messages-from-WeChat-on-Telegram-zh-CN/:这个过时了,不过…
我写了篇新的教程,算是自己摸索出来的吧:http://blog.lanhaoo.club/2017/05/19/%E5%BE%AE%E4%BF%A1-telegram-%E4%BA%92%E8%81%94%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89/
python 升级参考(虽然不需要,但是我还是把3.4升级3.5了,那个过时教程叫我3.5,后来看评论才知道github上更新了,3.4也可以):忘记链接了。
懒得写教程了,项目都集齐了。
PS. 最上面的图片来自:https://www.flickr.com/photos/yangsheng/9091888662,该图已申明可再利用和修改,但不能用作商业用途。在这里再利用一次
\ Lyrics is Not Full Version, But For My Life, It is. \
[ - ]
In the dark
在黑暗中
in the right of the middle mark
在这黯淡之中
·
Just in the tear of everything we rise below the surface
——
In the watch from the distant 17
看着渐远的17岁
Surely others dreams have been gold and undone
青春的梦想再也无法挽回
·
It's not what you painted in my head
这不是你曾向我描绘的未来啊
So much there is yet involved the colors that I saw
这里依旧有许多我尚未看到的色彩
·
We are all living in a dream
沉醉在美好梦境之中
And life ain't what it seems
但真实的生活却不似梦境中那般美好
Where everything's a mess
到处都是一团糟
And all these sorrows I have seen
【 触目之及 / 尽是悲伤 】
They lead me to believe
这使我不得不相信
That everything's a mess
尘世多苦
·
I want to dream
但我依旧有梦
I want to dream
我,依旧有梦
Leave me to dream
让我去追寻我的梦想
·
In the eyes
回想起年少时
of a teenage crystallized
眼中闪烁的光芒
Are the prettiest of lights
有着无法言说的美
That hang the hallways of the home
照亮了家中走廊的每个角落
·
And the cries from the strangers I ignite
被我惊扰的陌生人大声哭喊
They don't keep us up all night
他们不会让我们一整晚诉说自己的苦衷
we have the curtains drawn and closed
我们关上窗户,把窗帘拉下来
·
We are all living in a dream
我们都活在梦境之中
And life ain't what it seems
生活并不像你想象的那般美好
Where everything's a mess
一切都糟糕透了
And all these sorrows I have seen
【 所见之处 / 只剩荒芜 】
They lead me to believe
这让我不得不相信
That everything's a mess
尘世多难
·
I want to dream
但,我还有梦
I want to dream
我,还有梦
Leave me to dream
让我去寻找那美妙梦境
·
I know all your reasons
我听够你的理由了
To keep me from seeing
都是为了隐藏不想被我所见的事实
Everything is actually a mess
一切都是一团糟
But now I, I'm leaving
但是现在,我,我要离开
All of this we're only dreaming
我们只是一场梦而已
Everything is actually a mess
到处都糟透了啊
·
We are all living in a dream
我们都被囚禁在梦中
And life ain't what it seems
生活并不如你所想象的那般
Where everything's a mess
一切的一切,都杂乱不堪
And all these sorrows I have seen
【 无法凝望 / 悲伤遍地 】
They lead me to believe
这都促使我去相信
That everything's a mess
生活不是那么美好
·
BUT I HAVE DREAM
![]()
![]()
近日成功将wechat(微信)和telegram 互联,使用ehForwarderBot, 此安装教程参考1A23 LABS,但是那个已经过时了,这个是新的
本文使用:Python 3.5.3。(可以使用3.4,可以使用pyenv快速安装3.5版本)
#请不要把下列命令直接复制粘贴…… pyenv install --list #此命令列出所有版本 pyenv install 3.5.3 #此命令安装3.5.3
通过以下命令迅速搭建环境:(ubuntu 14.04之类的可能会提示ffmpeg有错,先不管)
apt-get install python3.5 libopus0 ffmpeg libmagic1 python3-pip git nano
(BotFather说的都是英文)
@BotFather 发起会话。发送指令 /newbot
指定这个 Bot 的名称与用户名,然后就会有个token(复制保存,以后用)
然后
/setprivacy 选择Bot 用户名,然后选择 “Disable”./setjoingroups 选择Bot 用户名,然后选择 “Enable”./setcommands 到 @BotFather,选择刚刚创建好的 Bot 用户名,然后发送如下内容(中英两个版本~)help - Show commands list.
link - Link a remote chat to a group.
unlink_all - Unlink all remote chats from a group.
info - Display information of the current Telegram chat.
chat - Generate a chat head.
recog - Recognize a speech by replying to it.
extra - Access extra functionalities.help - 展示全部命令. link - 连接群组进行跨群聊天. unlink_all - 取消所有群组的连接. info - 显示当前telegram信息. chat - 创建会话头. recog - 回复语音消息以进行识别. extra - 展示额外功能.
然后还需要获取你自己的 Telegram ID,它应显示为一串数字,此ID将作为机器人的管理员。向@userinfobot 发送任意文字即可查询ID(如果失效请在评论中回复)
( itchat那句很重要,更新itchat,不然上不去微信 )
输入以下命令
git clone https://github.com/blueset/ehForwarderBot.git cd ehForwarderBot pip3 install -r requirements.txt pip3 install itchat -U mkdir storage chmod 777 storage cp config.sample.py config.py
这时你应该还在ehForwarderBot目录
apt-get install screen screen python3 daemon.py start
手机打开微信扫描二维码(乱码请将putty界面全屏,或者直接复制下面输出的链接到浏览器登录)
然后就可以接收微信消息了,随意link一个微信群到telegram群,消息就会通过机器人互联