Coder Social home page Coder Social logo

skyf0l / whatsappterm Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 6.0 241 KB

A WhatsApp Client in Terminal

License: GNU General Public License v3.0

Python 100.00%
whatsapp whatsapp-api whatsapp-chat whatsapp-bot api api-client whatsapp-web api-service python3 chat-application

whatsappterm's Introduction

WhatsAppTerm

A WhatsApp Client in terminal, console or tty !

The application connects directly to the API of WhatsApp Web without intermediary

Features

  • Send and receive messages from users (Not yet)
  • Show all conversations
  • Save and resume session without scanning the QRCode

Installation

To install dependencies

pip3 install --user -r requirements.txt

Or

python3 -m pip install --user -r requirements.txt

Legal

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk.

whatsappterm's People

Contributors

skyf0l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

whatsappterm's Issues

error after scanning qr

Send: new_qrcode_query.--5,["admin", "Conn", "reref"]
Recv: new_qrcode_query.--5,{'status': 200, 'ref': '1@ar7UtapBB7nuuLU9tukBw9mbCo6JjTPtR2MBatVCJaZSqOJU43cXHBO0u/yH2c/VSIniNmvBTg...
...
Recv: s1,['Conn', {'ref': '1@ar7UtapBB7nuuLU9tukBw9mbCo6JjTPtR2MBatVCJaZSqOJU43cXHBO0u/yH2c/VSIniNmvBTg7TSw==...
Send: new_qrcode_query.--6,["admin", "Conn", "reref"]
Recv: s2,['Blocklist', {'id': 1, 'blocklist': []}]
Recv: s3,['Stream', 'update', False, '2.2132.6']
Recv: s4,['Props', {'stickers': 1, 'productCatalogOpenDeeplink': 1, 'productCatalogDeeplink': 1, 'catalogPdpN...
Invalid msg: preempt-77d54327efca0bd8.--2,(data)b'\x05\xaa\xd7\x0b\x80\x9ddw...'
Traceback (most recent call last):
File "\WhatsAppApi\Client\client_websocket.py", line 58, in __on_message
msg_data['json'] = self.decrypt_msg(msg_data['data'])
File "\WhatsAppApi\client.py", line 194, in decrypt_msg
raise TimeoutError('Generating key timed out')
TimeoutError: Generating key timed out
Please, to fix it, open an issue with this message (hide private data) and briefly explain how it happened
Traceback (most recent call last):
File "/whatsapp_term.py", line 100, in
main()
File "/whatsapp_term.py", line 96, in main
chat = Chat()
File "/whatsapp_term.py", line 22, in init
self._client.qrcode_ready_to_scan()
File "\WhatsAppApi\Client\client_qrcode.py", line 74, in qrcode_ready_to_scan
self.regen_qrcode()
File "\WhatsAppApi\Client\client_qrcode.py", line 59, in regen_qrcode
new_qrcode_result = self.wait_query_pop_json(new_qrcode_query_name)
File "\WhatsAppApi\client.py", line 184, in wait_query_pop_json
self.wait_query(query_name)
File "\WhatsAppApi\client.py", line 177, in wait_query
raise TimeoutError('Receive message timed out')
TimeoutError: Receive message timed out

SendText

image
so apparently i make it work but i don't know why it return 401
also the chat still doesn't show anything. i think it's problem is with encryption

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.