-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
couldn't match token 247 #3090
Comments
This because you get message from WhatsApp Web That activated Multi-device beta.
|
if you find a solution please share. |
bahtiarp, 247 token:
|
👍👍👍 |
On |
bahtiarp, for send node You need use 247 token too. |
Thanks ORMiK0, |
hi @bahtiarp could you care to share what file and patch code to solve this issue? thank you |
@pupan |
Thank you @bahtiarp, your patch work nicely in private message.. but I can't see the message if using group message, do you have any clue? |
I haven't checked that far. |
@bahtiarp thanks for the work you've done!!! maybe you have a solution to the problem with syncing contacts? |
Whomakes, |
|
i'm aware of this too the message not readable to all device, my guess every multiple device has own encryption key and current axolotl manager doesn't support it because different jid number. CMIIW.. |
friend write me in Watsapp +79990589348 |
@bahtiarp are you able to solve stream error ? After getting stream:error, number gets banned.
|
cf : tgalal#3090 pout plus d'infos
Hello |
Hi ,
The Message „ Wait for Message check your Phone „ is a Problem With the e2e
My e2e fix
[cid:631B4888-230B-4497-A985-3F20D9D2E0F6]
I can Send my Script @ the Weekend
Mit freundlichen grüßen
Lampenscherf
Am 29.11.2021 um 17:51 schrieb HeinzFo ***@***.***>:
Wait for Message check your Phone
|
Hello |
Hello Analog303 |
Hello @bahtiarp |
Hallo Analog303 |
Sorry für die späte antwort
Hier mein echo script mit !auth
import subprocess
from yowsup.layers.interface import YowInterfaceLayer, ProtocolEntityCallback
from yowsup.layers.protocol_messages.protocolentities import TextMessageProtocolEntity
from yowsup.layers.protocol_media.protocolentities import MediaMessageProtocolEntity, DownloadableMediaMessageProtocolEntity
from yowsup.layers.axolotl.props import PROP_IDENTITY_AUTOTRUST
#import mysql.connector as mariadb
#import mysql.connector
import time;
#from datetime import datetime
#import MySQLdb
import binascii
ts = time.time()
#cnow = datetime.now() # current date and time
KSMGVIE = ***@***.***";
BLITZER1 = ***@***.***";
BLITZER2 = ***@***.***";
BLITZER3 = ***@***.***";
VIDZ1 = ***@***.***";
VIDZ2 = ***@***.***";
VIDZ3 = ***@***.***";
Sticker ***@***.***";
Sticker2 ***@***.***";
#mydb = mysql.connector.connect(
# host="localhost",
# user="blitzer",
# passwd="2476576xx",
# database="blitzer"
#)
#mycursor = mydb.cursor()
class EchoLayer(YowInterfaceLayer):
@ProtocolEntityCallback("message")
def onMessage(self, messageProtocolEntity):
self.setProp(PROP_IDENTITY_AUTOTRUST, True)
FROM = messageProtocolEntity.getFrom();
TYPE = messageProtocolEntity.getType();
print("MSG TYPE: " +TYPE);
if TYPE == 'text':
self.onTextMessage(messageProtocolEntity)
elif TYPE == 'media':
self.onMediaMessage(messageProtocolEntity)
print("MEDIA: "+messageProtocolEntity.getFrom());
if ( FROM == BLITZER1 ):
self.toLower(messageProtocolEntity.forward(BLITZER2))
self.toLower(messageProtocolEntity.forward(BLITZER3))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
elif ( FROM == BLITZER2 ):
self.toLower(messageProtocolEntity.forward(BLITZER1))
self.toLower(messageProtocolEntity.forward(BLITZER3))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
elif ( FROM == BLITZER3 ):
self.toLower(messageProtocolEntity.forward(BLITZER1))
self.toLower(messageProtocolEntity.forward(BLITZER2))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
elif ( FROM == VIDZ1 ):
self.toLower(messageProtocolEntity.forward(VIDZ2))
self.toLower(messageProtocolEntity.forward(VIDZ3))
elif ( FROM == VIDZ2 ):
self.toLower(messageProtocolEntity.forward(VIDZ1))
self.toLower(messageProtocolEntity.forward(VIDZ3))
elif ( FROM == VIDZ3 ):
self.toLower(messageProtocolEntity.forward(VIDZ1))
self.toLower(messageProtocolEntity.forward(VIDZ2))
elif ( FROM == Sticker ):
self.toLower(messageProtocolEntity.forward(Sticker2))
elif ( FROM == Sticker2 ):
self.toLower(messageProtocolEntity.forward(Sticker))
# FOR THE ACK
self.toLower(messageProtocolEntity.ack())
self.toLower(messageProtocolEntity.ack(True))
@ProtocolEntityCallback("receipt")
def onReceipt(self, entity):
self.toLower(entity.ack())
def getMediaMessageBody(self, messageProtocolEntity):
print(messageProtocolEntity)
def onTextMessage(self,messageProtocolEntity):
# just print info
#print("Echoing %s to %s" % (messageProtocolEntity.getBody(), messageProtocolEntity.getFrom(False)))
######################################################################################################################################
# CHECK getBody IS AN OBJECT
if ( hasattr( messageProtocolEntity, 'getBody' ) ):
GROUP = ""; #clean var
# MSG PROTOCOL VARS
MSGID = messageProtocolEntity.getId()
MSG = messageProtocolEntity.getBody()
FROM = messageProtocolEntity.getFrom()
# OWN VARS
timestamp = int(time.time())
#currentDate = now.strftime("%d.%m.%Y");
#currentTime = now.strftime("%H:%M:%S");
# FROM ORIGINAL BLITZER 1 TO BLITZER 2
if ( FROM == BLITZER1 ):
self.toLower(messageProtocolEntity.forward(BLITZER2))
self.toLower(messageProtocolEntity.forward(BLITZER3))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
GROUP = "Blitzer-MG-1"
# FROM ORIGINAL BLITZR 2 TO BLITZER 1
elif ( FROM == BLITZER2 ):
self.toLower(messageProtocolEntity.forward(BLITZER1))
self.toLower(messageProtocolEntity.forward(BLITZER3))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
GROUP = "Blitzer-MG-2"
# FROM ORIGINAL BLITZR 3 TO BLITZER 3 (ECHO)
elif ( FROM == BLITZER3 ):
self.toLower(messageProtocolEntity.forward(BLITZER1))
self.toLower(messageProtocolEntity.forward(BLITZER2))
self.toLower(messageProtocolEntity.forward(KSMGVIE))
GROUP = "Blitzer-MG-3"
# FROM ORIGINAL Vidz1 TO Ziel (Vidz2)
elif ( FROM == VIDZ1 ):
self.toLower(messageProtocolEntity.forward(VIDZ2))
self.toLower(messageProtocolEntity.forward(VIDZ3))
GROUP = "Test"
# FROM ORIGINAL Vidz2 TO Ziel (Vidz1)
elif ( FROM == VIDZ2 ):
self.toLower(messageProtocolEntity.forward(VIDZ1))
self.toLower(messageProtocolEntity.forward(VIDZ3))
GROUP = "Test"
# FROM ORIGINAL Vidz3 TO Ziel (Vidz1)
elif ( FROM == VIDZ2 ):
self.toLower(messageProtocolEntity.forward(VIDZ1))
self.toLower(messageProtocolEntity.forward(VIDZ2))
GROUP = "Test"
# FROM ORIGINAL Sticker1 TO Ziel (Sticker2)
elif ( FROM == Sticker ):
self.toLower(messageProtocolEntity.forward(Sticker2))
GROUP = "Sticker"
# FROM ORIGINAL Sticker2 TO Ziel (Sticker1)
elif ( FROM == Sticker2 ):
self.toLower(messageProtocolEntity.forward(Sticker))
GROUP = "Sticker"
# if (GROUP != ""):
# print("MESSAGE FROM: " + GROUP);
# sql = "INSERT INTO messages (groupName, groupId, message, timestamp, date, time, msgId) VALUES (%s, %s, %s, %s, %s, %s, %s)"
# val = (GROUP, FROM, MSG, timestamp, currentDate, currentTime, MSGID)
# mycursor.execute(sql, val)
# mydb.commit()
# print(mycursor.rowcount, "DB Updated!")
else:
print("MESSAGE FROM OUTER SPACE: "+FROM+" - "+MSG);
if (MSG == "!auth"):
self.message_send(FROM, "Successfully authed!")
if (MSG == "! auth"):
self.message_send(FROM, "Successfully authed!")
if (MSG == "auth"):
self.message_send(FROM, "Successfully authed!")
if (MSG == "Authe"):
self.message_send(FROM, "Successfully authed!")
if (MSG == "!restart"):
self.message_send(FROM, "soon....")
if (MSG == "!status"):
self.message_send(FROM, "SYSTEM STATUS OK ! ECHO WORKING ")
if (MSG == "!help"):
self.message_send(FROM, "!status | !auth | !kick | !invite ")
self.message_send(FROM, "(C)2021 BLiTZER MG ")
if (MSG == "!kick"):
self.message_send(FROM, "soon....")
if (MSG == "!invite"):
self.message_send(FROM, "soon....")
########################################################################################################################
def message_send(self, number, content):
outgoingMessage = TextMessageProtocolEntity(content, to=self.normalizeJid(number))
self.toLower(outgoingMessage)
def normalizeJid(self, number):
if '@' in number:
return number
return ***@***.***" % number
########################################################################################################################
##### ON MEDIA MESSAGES ################################################################################################
########################################################################################################################
def onMediaMessage(self, messageProtocolEntity):
# just print info
if messageProtocolEntity.media_type == "image":
print("*** ECHOING IMAGE...")
# print("Echoing image %s to %s" % (messageProtocolEntity.url, messageProtocolEntity.getFrom(False)))
if messageProtocolEntity.media_type == "audio":
print("*** ECHOING AUDIO...")
# print("Echoing audio %s to %s" % (messageProtocolEntity.url, messageProtocolEntity.getFrom(False)))
if messageProtocolEntity.media_type == "ptt":
#open('a_file.wav', 'wb')
#f.write(messageProtocolEntity.getMediaContent())
#f.close()
#print(messageProtocolEntity);
print("*** ECHOING VOICE...")
#key = str( binascii.b2a_hex(messageProtocolEntity.media_key).decode("utf-8") );
#print("KEY: "+ key);
#print("URL: "+ messageProtocolEntity.url);
########################################################################################################################
##### test ################################################################################################
########################################################################################################################
########################################################################################################################
##### CUSTOM FUNCTIONS #################################################################################################
########################################################################################################################
def stringContains(mainStr, listOfStr):
for subStr in listOfStr:
if subStr in mainStr:
return (True, subStr)
return (False, "")
Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows
Von: ***@***.***>
Gesendet: Dienstag, 7. Dezember 2021 09:39
An: ***@***.***>
Cc: ***@***.***>; ***@***.***>
Betreff: Re: [tgalal/yowsup] couldn't match token 247 (#3090)
Hallo Analog303
Kann aus deinen comment leider nichts entsprechendes finden!
Grüße
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftgalal%2Fyowsup%2Fissues%2F3090%23issuecomment-987692393&data=04%7C01%7C%7C30a8906c6cad4273ab8c08d9b95d1ce9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637744631833947282%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=B%2BxHzA417QN4a25Wcv%2FhGdI9GcqZi2CB0qFp0SsQXz0%3D&reserved=0>, or unsubscribe<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAV623VI24PRVNJIP7YRAVQ3UPXB4ZANCNFSM5DRJZKAA&data=04%7C01%7C%7C30a8906c6cad4273ab8c08d9b95d1ce9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637744631833957237%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=663ivW3u1CCol1z1SKutl%2FrrKCCJhMAG26cshBOTMO4%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C30a8906c6cad4273ab8c08d9b95d1ce9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637744631833957237%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=n5GYgHwxSmaWyN0x1GkbT48Z1dZwdZ78kA3XZvux%2B%2Fk%3D&reserved=0> or Android<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C30a8906c6cad4273ab8c08d9b95d1ce9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637744631833967195%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yy4qO6MXdxqpzzh1hLC24b%2BQ0LPL499o%2FCUf8Nk1AGg%3D&reserved=0>.
|
Hallo Analog303 |
Can someone summarize this? There are mixed responses and languages, does this fix the WhatsApp Web Multidevice messages? |
yes, partially fixed. |
Can somebody summarize this? what exact files do i need to change and what lines do i need to put on those files? Im little confused because the languages and im lost in the conversation/posts .. |
Has anyone had success in receiving messages in groups both on the mobile app and on Whatsapp Web or on the desktop app? |
Exception: readString couldn't match token 247
what is this error? how can it be corrected or ignored?
The text was updated successfully, but these errors were encountered: