rmed / wat-bridge Goto Github PK
View Code? Open in Web Editor NEWBridge between Whatsapp and Telegram, because why not
License: MIT License
Bridge between Whatsapp and Telegram, because why not
License: MIT License
The WhatsApp API got an update. Now only wat-bridge has to be adjusted.
The WhatsApp phone must include the country code (only two digits) followed by the number, for instance 49xxxxxxxxx, and the password can be obtained through the Yowsup cli interface.
Which two of the three digits of the country cide do you use? What happens if several countries use the same two first digits in the country code but only differ with the third?
Hi,
I have successfully setup the bot.
I can add the phone number and name in the bot.
Ex: /add felix 8412322322 (84 is the country code)
After sending,
/send felix Hello from the other side.
I cannot receive the sms on whatsapp.
Please help on this case.
Thanks,
Felix.
This is the response I received on the terminal.
[INFO] 2020-03-30 19:38:18,947 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:19,850 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:20,751 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:21,720 - tg[relay_wa]: relaying message to Whatsapp
[INFO] 2020-03-30 19:38:21,723 - signals[to_wa_handler]: sending message to felixn (+8434612xxxx)
[INFO] 2020-03-30 19:38:21,721 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:22,687 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:23,553 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:24,432 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:25,296 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:27,431 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:28,366 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:29,287 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:30,270 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:31,301 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:32,338 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:33,401 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:34,373 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:35,430 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:36,496 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:37,495 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:38,472 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:39,425 - listeners[wa_listener]: Start Whatsapp polling
[INFO] 2020-03-30 19:38:39,721 - tg[relay_wa]: relaying message to Whatsapp
[INFO] 2020-03-30 19:38:39,723 - signals[to_wa_handler]: sending message to felix (8434612xxxx)
hi sir can i get your contact for reqquest something
I get the following Message:
[INFO] 2018-11-11 17:36:57,511 - listeners[tg_listener]: Start Telegram polling
[INFO] 2018-11-11 17:36:57,517 - listeners[wa_listener]: Start Whatsapp polling
[ERROR] 2018-11-11 17:36:59,964 - listeners[wa_listener]: not-authorized
[INFO] 2018-11-11 17:36:59,964 - listeners[wa_listener]: Start Whatsapp sleep
[INFO] 2018-11-11 17:37:09,971 - listeners[wa_listener]: Ended Whatsapp sleep
[INFO] 2018-11-11 17:37:09,972 - listeners[wa_listener]: Start Whatsapp polling
[ERROR] 2018-11-11 17:37:10,420 - listeners[wa_listener]: not-authorized
[INFO] 2018-11-11 17:37:10,420 - listeners[wa_listener]: Start Whatsapp sleep
Can anyone help me?
When a voice clip is sent from either service it should be relayed to the other service accordingly.
The file should only be stored temporarily and must be deleted once delivered. It is important to make sure that the relayed voice clip uses a format recognized by the destination service.
My proposition to solve the issue with Ban a number is the possibility of using a virtual SIM card.
User will:
App will:
What is a sim card? - it's a memory with simple yet powerful Java applet.
The applet can be generated with Oracle SDK ( Windows machine req. )
Link for the Oracle SIM Applet SDK ( The javacard SDK)
This is base for make virtual number.
http://www.oracle.com/technetwork/java/embedded/javacard/downloads/javacard-sdk-2043229.html
When an image file is sent from either service it should be relayed to the other service accordingly.
The image file should only be stored temporarily and must be deleted once delivered.
When the WhatsApp account receives messages and the program is not running, these are automatically delivered when the listener starts running. However, it is not possible to know when the message was sent in WhatsApp.
It would be useful to know the date and time of the message when it is delivered by the Telegram bot. This could be done, for instance, sending the timestamp when relaying the message to Telegram through the signal.
wa tg bridge
Hello,
Whenever I try to start the bot, I receive the following error:
(venv) jens@feuerstern:~/bridge/wat-bridge> WAT_CONF=config.conf python watbridge.py
Traceback (most recent call last):
File "watbridge.py", line 40, in <module>
from wat_bridge.listeners import tg_listener, wa_listener
File "/home/jens/bridge/wat-bridge/wat_bridge/listeners.py", line 34, in <module>
from wat_bridge.wa import WA_STACK, _connect_signal
File "/home/jens/bridge/wat-bridge/wat_bridge/wa.py", line 128, in <module>
.pushDefaultLayers(False)
TypeError: pushDefaultLayers() takes 1 positional argument but 2 were given
(venv) jens@feuerstern:~/bridge/wat-bridge>
Any idea what to do?
Thanks for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.