tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.03k stars 2.23k forks source link

Unable to Login #2922

Closed jamescder closed 4 years ago

jamescder commented 4 years ago

I was Trying to Login but it Frequently Gets Disconnecting.

=======UPDATE========

Hey, Guys I Have Seen Previous Thread is Closed, It May Be Because @tgalal is working on the issue to Fix it Out, Hope we get the Updated version soon from @tgalal .

Guys Let's Do one thing we know @tgalal has Build best WhatsApp API and it worked for all of us very Well.

As Soon as @tgalal update the Code, Let's Pay As Much as We can Using Donate Button as Thanks Giving.

Let's Hope Tgalal Will Update the Working Version Soon.

Please @tgalal inform us if you are Working on it.

Thanks

Johnprogg commented 4 years ago

Facing the Same Issue from Past 4 Days

Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Not connected
Disconnected: 
[offline]:
fabio-stein commented 4 years ago

Same here

`offline:/L I 2020-01-26 13:02:14,217 yowsup.layers.network.layer - Connecting to e5.whatsapp.net:443 general: Disconnected: offline:

berkayaksoy commented 4 years ago

The same problem has been in everyone for about 4 days. Most people are in search of another service.

The authorities did not even start looking for a solution to the problem. They lock up the opened problem records and disappear.

I think you should stop hope and start another service.

fevzican commented 4 years ago

The same problem has been in everyone for about 4 days. Most people are in search of another service.

The authorities did not even start looking for a solution to the problem. They lock up the opened problem records and disappear.

I think you should stop hope and start another service.

I dont know if there is an alternative library like that, do you? I think @tgalal is working on this issue, or i just hope.

tcruzf commented 4 years ago

The same problem has been in everyone for about 4 days. Most people are in search of another service. The authorities did not even start looking for a solution to the problem. They lock up the opened problem records and disappear. I think you should stop hope and start another service.

I dont know if there is an alternative library like that, do you? I think @tgalal is working on this issue, or i just hope.

Migrate to https://github.com/smashah/sulla I dont know for node.js, but, ....

bahtiarp commented 4 years ago

@fevzican , i still have 1 number working paid version of https://github.com/mgp25/Chat-API by chat-api.net But seems the website is not working and no support anymore.
and currently i start using https://github.com/mukulhase/WebWhatsapp-Wrapper as backup.

But still hope for yowsup can be fixed again.

iacup commented 4 years ago

Hi, I think I found a solution. First you need to set latest protocol version into noise.layer.py (both WA header and WANoise protocol init):

class YowNoiseLayer(YowLayer):
    DEFAULT_PUSHNAME = "yowsup"
    HEADER = b'WA\x03\x00'
    EDGE_HEADER = b'ED\x00\x01'
    EVENT_HANDSHAKE_FAILED = "org.whatsapp.yowsup.layer.noise.event.handshake_failed"

    def __init__(self):
        super(YowNoiseLayer, self).__init__()
        self._wa_noiseprotocol = WANoiseProtocol(
            3, 0, protocol_state_callbacks=self._on_protocol_state_changed
        )  # type: WANoiseProtocol

        ...

Then, you should be able to login, however, you will receive some nonsense messages from upper layers. That's because the token dictionary has changed completely. I copied the dictionary into tokendictionary.py as follows

  def __init__(self):
        self.dictionary = [
            "", "xmlstreamstart", "xmlstreamend", "type", "id", "from", "receipt", "t", "s.whatsapp.net", "message",
            "iq", "to", "participant", "ack", "enc", "plaintext_size", "compressed_size", "class", "v", "user", "jid",
            "notify", "host", "off_cnt", "value", "1", "xmlns", "result", "media_conn", "read", "offline", "mediatype",
            "presence", "edit", "notification", "get", "item", "phash", "skmsg", "text", "status", "broadcast", "g.us",
            "hostname", "contact", "image", "set", "participants", "0", "chatstate", "media", "success", "ib",
            "subject", "picture", "seen", "ping", "w", "retry", "unavailable", "config", "msg", "ip6", "ip4", "video",
            "ttl", "auth_ttl", "max_buckets", "count", "composing", "call", "w:p", "auth", "call-creator", "props",
            "last", "creation", "location", "hash", "bits", "list", "gcm", "deny", "call-id", "pop", "subscribe", "te",
            "preview", "multicast", "gif", "code", "relaylatency", "download", "primary", "pkmsg", "action", "order",
            "add", "delivery", "routing_info", "edge_routing", "dns_domain", "w:m", "available", "mmg.whatsapp.net",
            "contacts", "fallback", "download_buckets", "name", "audio", "in", "played", "fail", "platform",
            "urn:xmpp:ping", "fna", "upload", "ptt", "urn:xmpp:whatsapp:push", "verified_name", "paused", "update",
            "key", "out", "error", "query", "true", "business", "atn", "401", "usync", "delete", "unread", "w:stats",
            "w:profile:picture", "url", "sidelist", "net", "medium", "state", "sticker", "active", "frc", "prop", "web",
            "encrypt", "identity", "verified_level", "document", "w:compress", "w:gp2", "latency", "mode", "transport",
            "registration", "opus", "rate", "keygen", "encopt", "profile", "priority", "orientation", "mute", "unknown",
            "none", "resume", "offer", "ver", "capability", "sid", "index", "context", "terminate", "transaction-id",
            "false", "default", "business_hours_config", "serial", "reason", "side_list", "version", "screen_width",
            "stream:error", "tsoffline", "features", "token", "relay", "videostate", "contact_remove", "contact_add",
            "remove", "tag", "refresh", "protocol", "e", "resume_check", "media_type", "w:web", "invite", "group",
            "readreceipts", "note.m4r", "jabber:iq:privacy", "disable", "background", "delta", "direct_path",
            "conflict", "skey", "preaccept", "admin", "signature", "404", "item-not-found", "day_of_week", "accept",
            "interactive", "timeoffline", "apple", "sync", "open_time", "close_time", "user_add", "full",
            "screen_height", "timeout", "duration", "audio_duration", "voip_settings", "callee_updated_payload",
            "description", "rte", "not-authorized", "groups", "voip", "uploadfieldstat"
        ]

        self.secondaryDictionary = [
           "lg", "lc", "s_t", "s_o", "Opening.m4r", "feature", "complete", "allow", "from_ip", "to_ip", "creator",
            "reject", "video_duration", "maxfpp", "rc_dyn", "privacy", "ip_config", "enable_ssrc_demux", "re", "proto",
            "latency_update_threshold", "category", "timestamp", "specific_hours", "options", "url_text", "nack",
            "aud_pkt_reorder_pct", "server-error", "invalid", "cond_net_medium", "vertical", "canonical", "passive",
            "is_biz", "w:g2", "cond_range_rtt", "encode", "dtx", "group_info", "ts", "business_hours", "timezone",
            "target_bitrate", "end", "modify", "en", "user_remove", "minfpp", "superadmin", "request",
            "enable_audio_oob_fec_feature", "log", "userrate", "vid_rc", "max_bitrate", "init_bwe", "test_flags",
            "max_tx_rott_based_bitrate", "max_bytes", "init_bitrate", "use_local_probing_rx_bitrate", "open_24h",
            "mtu_size", "enable_audio_pkt_piggyback_for_sender", "enable_audio_piggyback_feature",
            "enable_audio_oob_fec_for_sender", "audio_piggyback_timeout_msec", "audio_oob_fec_max_pkts",
            "cond_range_packet_loss_pct", "video_codec_priority", "source_action", "rows_seen", "ad_position", "event",
            "Tri-tone.caf", "rc", "promote", "off", "enable_periodical_aud_rr_processing",
            "cond_range_target_total_bitrate", "cond_congestion_signal_mask", "cond_congestion_no_rtcp_thr",
            "cond_congestion_no_init_rtt_thr", "group_update", "author", "interruption", "keys", "address", "403",
            "identity_verification", "chord.m4r", "forbidden", "enc_supported", "enc_rekey", "body", "email", "thu",
            "begin", "wed", "tue", "busy", "mon", "fri", "all", "website", "bamboo.m4r", "live", "battery", "os",
            "browser", "encrypt_video", "encrypt_v2", "encrypt_url", "encrypt_location", "encrypt_image",
            "encrypt_group_gen2", "encrypt_contact", "encrypt_blist", "encrypt_audio", "client", "aurora.m4r",
            "connected", "Glass.caf", "sat", "recipient", "create", "rotate", "popcorn.m4r", "fbip", "caller_bad_asn",
            "sonar", "mediaretry", "dirty", "longitude", "latitude", "405", "callee_bad_asn", "source", "elapsed",
            "circles.m4r", "final", "not-allowed", "new", "complete.m4r", "status_session_summary", "event_seq",
            "locked", "hello.m4r", "xor_cipher", "p2", "p1", "enabled", "vcard", "vid_rc_dyn", "sun", "demote",
            "required", "video_max_edge", "video_max_bitrate", "status_video_max_duration", "status_video_max_bitrate",
            "status_image_quality", "status_image_max_edge", "media_max_autodownload", "max_subject",
            "max_participants", "max_keys", "image_quality", "image_max_kbytes", "image_max_edge", "file_max_size",
            "lists", "gif_provider", "payments_disable_switch_psp", "keys.m4r", "microsoft", "old", "p256dh", "kaios",
            "endpoint", "appointment_only", "attestation", "w:biz", "status_entry", "low", "small_call_btn",
            "force_long_connect", "qcount", "leave", "flowcontrol", "clear", "pulse.m4r", "Boing.caf", "participating",
            "Bell.caf", "synth.m4r", "w:ads", "crypto", "response", "powersave", "test", "Chrome", "input.m4r",
            "start", "announcement", "cond_range_target_bitrate", "other", "2fa", "digest", "prof-services",
            "America/Sao_Paulo", "cond_peer_net_medium", "bank", "clean", "Harp.caf", "te2", "fanout", "livelocation",
            "maxbwe", "jb_max_playout_dist", "TimePassing.caf", "urn:xmpp:whatsapp:account", "Windows 10",
            "Xylophone.caf", "size", "nonce", "501", "expiration", "Desktop", "google", "w:b", "relay_id", "blacklist",
            "locales", "outgoing", "password", "url_number", "mms_vcache_aggregation_enabled", "unsubscribe", "jws",
            "business_profile", "relayelection", "bitrate", "retail", "not_announcement", "raw", "ot", "oid",
            "Asia/Calcutta", "Asia/Kolkata", "cond_range_remb_minus_peer_rx_br", "sender_inc_ratio",
            "enable_cc_bwe_slow_ramp_up", "cc_bwe_slow_ramp_up_peer_rx_bitrate",
            "cc_bwe_slow_ramp_up_ceiling_multiplier", "wa_zero_rate_sig", "terminated", "batterystate", "[]", "apparel",
            "urn:xmpp:whatsapp:dirty", "Asia/Jakarta", "409", "target_bitrate_upper_bound", "peer_state", "whitelist",
            "rekey", "406",
            "Windows 7", "cache", "edu", "400", "spam_list", "spam_flow", "wns", "contact_array", "302", "410",
            "languagepack", "mms_media_key_ttl", "challenge", "health", "max_encode_width", "bank-ref-id", "cc",
            "max_fps", "codec_type", "entertain", "paid_message", "407", "auto", "psa", "beauty", "failure", "stop",
            "bypassed", "402", "aec", "500", "portpredicting", "travel", "max_target_bitrate",
            "comb_psnr_sample_interval", "govt", "not-a-biz", "video_frame_crc_sample_interval",
            "enable_pli_for_crc_mismatch", "gdpr", "grocery", "min_target_bitrate", "enable_frame_dropper",
            "normalize", "ns", "Mac OS 10.13.6", "America/Belem", "ad", "hsm", "after", "key_frame_interval", "503",
            "event-plan", "additive_sender_bwe_inc_near_max", "Asia/Kuala_Lumpur", "finance", "gone", "Firefox",
            "force_additive_sender_bwe_inc", "America/Bogota", "c0", "c1", "c2", "504", "c3",
            "vpx_max_intra_bitrate_pct", "pli_key_frame_pct", "Mac OS 10.14.0", "psnr_resolution_ctrl_sample_size",
            "overshoot_rate_sample_interval", "overshoot_rate_ema_sample_size",
            "overshoot_rate_downgrade_threshold_pct", "enc_psnr_downgrade_threshold", "restaurant", "vp8_cpu", "agc",
            "spam", "high", "bwe", "Mac OS 10.14.1", "expiration_ts", "Africa/Lagos", "codec_sub_type",
            "vid_rc_battery", "Mac OS 10.10.1", "Windows 8.1", "bank-phone-number", "Safari", "status_v2",
            "gif_search", "use_audio_packet_rate", "audio_encode_offload", "offset", "transport_stats_p2p_threshold",
            "spam_call_threshold_seconds", "enable_upnp", "enable_preaccept_received_update",
            "enable_new_transport_stats", "connected_if_received_data", "vad_threshold", "precise_rx_timestamps_mask",
            "p2p_request_timeout", "non_speech_bitrate", "maxfpp_duration", "echo_detector_mode", "echo_detector_impl",
            "disable_agc", "caller_end_call_threshold", "call_start_delay", "android_call_connected_toast",
            "aecm_adapt_step_size", "cancel_offer", "wa_log_time_series", "waLogTimeSeries", "account",
            "delay_based_bwe_trendline_filter_enabled", "delay_based_bwe_bitrate_estimator_enabled", "bwe_impl",
            "hotel", "Mac OS 10.12.6", "America/Mexico_City", "on_rtp", "#resource-limit", "nonprofit", "Asia/Karachi",
            "Asia/Riyadh", "en-GB", "rejected", "chat", "unlocked", "America/Manaus", "block_dialog",
            "America/Argentina/Buenos_Aires", "not-acceptable", "cbr", "maxrtt", "low_data_usage_bitrate",
            "complexity", "algorithm", "targetlevel", "limiterenable", "ec_threshold", "ec_off_threshold",
            "compressiongain", "use_udp_relay", "use_tcp_relay", "use_new_ping_format",
            "tcp_relay_bind_timeout_in_msec", "username", "unsigned_mode", "biz_status", "America/Recife", "audience",
            "internal", "create_certificate", "Opera", "Europe/Istanbul", "min_packet_loss_pct", "Linux x86_64",
            "setup_failed", "enc_rekey_retry", "Mac OS 10.11.6", "max_packet_loss_pct", "low_threshold",
            "Africa/Johannesburg", "America/Araguaina", "prev", "420", "max_capture_width", "cond_rtt_ema_alpha",
            "cond_range_ema_rtt", "America/Noronha", "Apex.m4r", "invisible", "Africa/Harare", "Asia/Makassar",
            "internal-server-error", "Europe/Rome", "p2p_pay", "x", "Europe/Madrid", "America/Lima", "net_medium",
            "Africa/Cairo", "force_logout", "Asia/Dubai", "max", "Africa/Nairobi", "Mac OS 10.13.3", "Edge",
            "Africa/Accra", "aecm", "favorites", "America/Guayaquil", "biz", "America/Asuncion", "Beacon.m4r", "408",
            "rusr", "rexp", "rproc", "rusrreg", "vp8_static_threshold", "packet_loss_mode",
            "no_rtcp_received_threshold", "no_data_received_threshold", "min_decrease_factor_on_congestion",
            "max_key_frame_mode_bitrate", "low_battery_notify_threshold", "initial_rtt_congestion_threshold",
            "equalize_packet_sizes", "drop_threshold", "cellular_bitrate", "rtt_congestion_step", "account_info",
            "America/La_Paz", "nack_rtt_interactive_threshold", "America/Fortaleza", "transaction", "Mac OS 10.13.4",
            "ka", "Europe/Moscow", "Mac OS 10.10.5", "vpx_min_qp", "Asia/Jerusalem", "America/Santo_Domingo", "vpa",
            "relay_bind_failed", "America/Campo_Grande", "Asia/Aden", "America/Caracas", "Asia/Hong_Kong",
            "Asia/Almaty", "America/Santiago", "Windows 8", "es-MX", "Pacific/Midway", "Africa/Dar_es_Salaam",
            "Europe/Berlin", "Mac OS 10.13.5", "America/Costa_Rica", "Asia/Beirut", "America/New_York",
            "Africa/Porto-Novo", "Linux i686", "Mac OS 10.10.4", "logout", "America/Montevideo", "ack_smb",
            "Mac OS 10.14", "Europe/Amsterdam", "460", "tos2", "Asia/Kuwait", "accept_smb", "optout",
            "America/Guatemala", "Asia/Amman", "Africa/Casablanca", "Africa/Lome", "backoff", "psp-routing",
            "Windows XP", "America/Panama", "America/Tegucigalpa", "amr", "Europe/London", "no-raw-e2e", "Asia/Muscat",
            "upi", "havehash", "Africa/Douala", "psp", "Ubuntu", "min", "adm", "Mac OS 10.13.2", "Mac OS 10.13.1",
            "America/Buenos_Aires", "Asia/Singapore", "Asia/Damascus", "meta", "rtcp_vid_plr_max_disorder_dist",
            "rtcp_use_new_plr", "rtcp_aud_plr_max_disorder_dist", "min_elastic_disorder_buf_size_in_frames",
            "max_audio_frame_disorder_distance", "aud_disorder_dist_hist_reset_interv_in_sec", "Mac OS 10.11",
            "Asia/Shanghai", "Africa/Kampala", "Mac OS 10.13", "Asia/Baku", "America/Chihuahua", "provider-type",
            "product_catalog", "ICICI", "Asia/Bishkek", "GMT", "Asia/Bahrain", "Asia/Qatar", "Asia/Bangkok",
            "Africa/Brazzaville", "America/El_Salvador", "US", "max_rtt", "builtin", "credential-id",
            "America/Jamaica", "Mac OS 10.12.5", "Unauthorized", "427", "iOS 8.2", "Mac OS 10.9.5", "pay",
            "encr_media", "device-id", "Asia/Colombo", "stage", "Brazil/East", "w:pay", "accept2", "Mac OS 10.11.1",
            "page", "bad-request", "height", "expires", "transaction-prefix", "America/Cancun", "width",
            "xml-not-well-formed", "Africa/Khartoum", "rim", "es", "Mac OS 10.14.2", "pt", "wa-support-phone-number",
            "push", "silent", "BR", "nodal", "Africa/Kigali", "counter", "amount", "Chromium OS 11021.56.0",
            "Asia/Brunei", "Africa/Maputo", "Africa/Abidjan", "Pacific/Majuro", "Africa/Dakar",
            "max_audio_ts_jitter_ms", "Chromium", "accept_pay", "Europe/Brussels", "Africa/Lusaka", "Mac OS 10.12",
            "Africa/Blantyre", "seq-no", "Asia/Tehran", "pt-PT", "Ubuntu Chromium", "policy", "America/Managua",
            "Europe/Andorra", "smb_tos", "enable", "Europe/Bucharest", "android_record_preset", "ex",
            "America/Boa_Vista", "en-AU", "GB", "sms-prefix", "sms-gateways", "providers", "upi-bank-info",
            "Mac OS 10.12.3", "free", "sender-alias", "receiver-alias", "is_vpa", "bank-transaction-id",
            "America/Eirunepe", "Asia/Yekaterinburg", "Mac OS 10.11.5", "receiver", "America/Tijuana",
            "America/Port_of_Spain", "currency", "America/Port-au-Prince", "uri", "Asia/Baghdad", "Africa/Ouagadougou",
            "sender", "Mac OS 10.13.0", "android_audio_engine", "limit", "pin-format-version", "otp-length",
            "mpin-length", "is-mpin-set", "bank-name", "atm-pin-length", "account-number", "account-name",
            "America/Chicago", "America/Los_Angeles", "upi-batch", "message-id", "default-debit", "default-credit",
            "price", "Mac OS 10.12.0", "Asia/Vladivostok", "America/Barbados", "Europe/Paris", "Asia/Krasnoyarsk",
            "w:biz:catalog", "w:auth:token", "Mac OS 10.11.4", "Asia/Yakutsk", "Mac OS 10.12.4", "America/Bahia", "ip",
            "cond_min_packet_loss_pct", "cond_max_rtt", "America/Toronto", "Africa/Luanda", "Asia/Dhaka",
            "America/Hermosillo", "visible", "Europe/Zurich", "provider", "mmid", "Africa/Libreville",
            "Africa/Addis_Ababa", "self", "Africa/Ceuta", "caller_timeout", "lang", "total", "Windows Vista",
            "limited", "Africa/Niamey", "ifsc-code", "created", "account-ref-id", "Africa/Windhoek",
            "America/Bahia_Banderas", "status_ad", "call_info", "ICIWC", "304", "pin", "Mac OS 10.11.3", "banks",
            "ads", "Asia/Jayapura", "audio_fps_threshold", "Atlantic/Azores", "delay", "Atlantic/Canary",
            "verification-data", "notif-allowed", "nodal-allowed", "Atlantic/South_Georgia", "iOS Messenger",
            "terminator", "mpin", "America/Godthab", "sms-phone-number", "mcc", "Asia/Oral", "Africa/Kinshasa", "fbid",
            "Europe/Lisbon", "Mac OS 10.12.1", "Linux", "Mac OS 10.12.2", "server", "Europe/Athens", "Asia/Taipei",
            "Europe/Vienna", "receiver-vpa", "future", "Mac OS 10.11.0", "vpas", "Vivaldi", "Africa/Gaborone",
            "America/Monterrey", "first", "Europe/Kiev", "token-type", "min_media", "valid", "psp-config",
            "Mac OS 10.10", "Africa/Bamako", "ar", "Africa/Mogadishu", "owner", "Chromium OS 10895.78.0",
            "America/Puerto_Rico", "Africa/Bujumbura",
            "upi-get-vpa", "sender-vpa", "feature-not-implemented", "Africa/Mbabane", "America/Phoenix", "428",
            "Poland", "America/Guadeloupe", "k1", "America/Cordoba", "America/Anguilla", "Asia/Ho_Chi_Minh", "INR",
            "America/Nassau", "fr", "SUCCESS", "Europe/Minsk", "US/Indiana-Starke", "America/Atikokan",
            "Indian/Mauritius", "sts", "link", "Europe/Kaliningrad", "America/Mazatlan", "Europe/Helsinki",
            "Mac OS 10.10.3", "Africa/Freetown", "Europe/Sarajevo", "Mac OS 10.11.2", "Europe/Tirane", "upi-get-token",
            "speed", "Australia/Perth", "paid", "America/Denver", "America/Paramaribo", "tos", "ru", "America/Detroit",
            "Asia/Tbilisi", "sound", "sufficient-balance", "Europe/Dublin", "Asia/Seoul", "Australia/Sydney",
            "iOS 12.0.1", "get-methods", "Indian/Christmas", "Asia/Magadan", "Europe/Warsaw", "America/Halifax",
            "upi-get-accounts", "uncallable", "element_name", "Turkey", "ES", "Atlantic/Madeira", "show", "before",
            "MX", "tracking_token", "Africa/Algiers", "#pay-tos-not-accepted", "undefined", "Mac OS 10.6.8",
            "violation", "actor", "America/Antigua", "Mac OS 10.9", "Mac OS 10.8.5", "Africa/Maseru", "cancel",
            "Asia/Manila", "America/Merida", "Africa/Tripoli", "iOS 12.1", "Mac OS 10.7.5", "upi-bind-device", "wait",
            "upi-intent-to-send", "upi-get-blocked-vpas", "pcm", "missing", "America/St_Johns", "sender_loss_high",
            "Mac OS 10.10.2", "Mac OS 10.7.3", "Atlantic/Cape_Verde", "get-transactions", "Etc/GMT+3", "Fedora",
            "America/Indiana/Indianapolis", "Africa/Nouakchott", "upi-check-mpin", "mp3", "Mac OS 10.10.0",
            "Asia/Tokyo", "kind", "k0", "expired", "America/Anchorage", "tr", "Asia/Novosibirsk", "upi-register-vpa",
            "otp", "cts", "Indian/Mayotte", "America/Dawson", "pid-setup", "America/Regina", "America/Maceio",
            "Africa/Lubumbashi", "US/Michigan", "America/Cuiaba", "Asia/Kamchatka", "upgrade", "iOS 11.4.1",
            "Asia/Omsk", "Asia/Katmandu", "policy-violation", "Pacific/Honolulu", "Europe/Riga", "Asia/Vientiane",
            "Africa/Banjul", "Android 8.0.0", "Europe/Zagreb", "Europe/Samara", "Europe/Belgrade", "upi-list-keys",
            "hi", "should_monitor_audio_health", "cost", "Asia/Pontianak", "Antarctica/Davis", "America/Guyana",
            "Europe/Stockholm", "America/Vancouver", "America/Porto_Velho", "file", "Africa/Tunis", "wallet-balance",
            "ent_load_test", "Pacific/Auckland", "State Bank Of India", "Europe/Prague", "de", "Indian/Maldives",
            "Asia/Kabul", "Asia/Aqtau", "it", "Asia/Phnom_Penh", "Africa/Conakry", "error-text", "error-code",
            "balance", "Zulu", "Mac OS 10.8", "America/Belize", "method", "arch 64", "Unexpected wa_fb_api error",
            "INITIAL", "Etc/GMT+4", "Asia/Tashkent", "America/Rio_Branco", "send", "W-SU", "Asia/Nicosia",
            "Asia/Irkutsk", "America/Punta_Arenas", "America/Aruba", "iOS 10.3.1", "Chromium OS 11151.17.0",
            "upi-vpa-sync", "America/Edmonton", "nl", "Asia/Yerevan", "Android 7.0", "ad_invalidated", "Libya",
            "Asia/Kathmandu", "tizen", "note", "iOS 11.4", "Pacific/Fiji", "Europe/Budapest", "Asia/Rangoon",
            "http://etherx.jabber.org/streams", "WET", "Africa/Malabo", "urn:xmpp:whatsapp:sync", "srtp",
            "catalog_status", "Chromium OS 10895.56.0", "Australia/Brisbane", "Asia/Qyzylorda", "Asia/Aqtobe",
            "everyone", "Africa/Ndjamena", "rtt", "lsp", "Jamaica", "Europe/Bratislava", "Canada/Atlantic",
            "Asia/Dushanbe", "wma", "view_slot_total", "view_slot", "view_media_total", "view_media", "time_gap",
            "request_time_gap", "min_total", "Singapore", "Pacific/Guam", "Mac OS 10.6", "Europe/Malta",
            "Europe/Chisinau", "Asia/Saigon", "qr", "nokia", "Mac OS 10.9.4", "Europe/Sofia", "Europe/Monaco",
            "Chile/Continental", "Africa/Monrovia", "#pay-tos-v2-not-accepted", "jabber:iq:last", "cta", "WebKit",
            "Asia/Dili", "America/Ojinaga", "upi-user-set-up", "received", "owning", "iOS 12.0", "field",
            "advertising_id", "adder", "GMT+05:30", "Chromium OS 10718.88.2", "America/St_Kitts", "America/Grand_Turk",
            "America/Dominica", "whatsapp:hsm:facebook:alerts", "stat", "port", "device", "creative",
            "Pacific/Tongatapu", "Europe/Copenhagen"
        ]

This is very rough solution but I was able to make messages and group messages working.

bahtiarp commented 4 years ago

@iacup thanks, it's working like a charm!

maqox commented 4 years ago

Working Great Using @iacup solution. PLEASE DONATE TO @tgalal FOR DOING THIS PROJECT.

Johnprogg commented 4 years ago

@iacup Thanks It’s Woking, You are the real genius

subhamsuthar commented 4 years ago

@iacup can i need to re-register number or test with new number..?

iacup commented 4 years ago

@iacup can i need to re-register number or test with new number..?

no, it should work normally

modcastro commented 4 years ago

@iacup great job!

technocode commented 4 years ago

does syncing contact work with new token?

iacup commented 4 years ago

opened pull request https://github.com/tgalal/yowsup/pull/2924

fajarnurprasetyo commented 3 years ago

Hi, I think I found a solution. First you need to set latest protocol version into noise.layer.py (both WA header and WANoise protocol init):

class YowNoiseLayer(YowLayer):
    DEFAULT_PUSHNAME = "yowsup"
    HEADER = b'WA\x03\x00'
    EDGE_HEADER = b'ED\x00\x01'
    EVENT_HANDSHAKE_FAILED = "org.whatsapp.yowsup.layer.noise.event.handshake_failed"

    def __init__(self):
        super(YowNoiseLayer, self).__init__()
        self._wa_noiseprotocol = WANoiseProtocol(
            3, 0, protocol_state_callbacks=self._on_protocol_state_changed
        )  # type: WANoiseProtocol

        ...

Then, you should be able to login, however, you will receive some nonsense messages from upper layers. That's because the token dictionary has changed completely. I copied the dictionary into tokendictionary.py as follows

  def __init__(self):
        self.dictionary = [
            "", "xmlstreamstart", "xmlstreamend", "type", "id", "from", "receipt", "t", "s.whatsapp.net", "message",
            "iq", "to", "participant", "ack", "enc", "plaintext_size", "compressed_size", "class", "v", "user", "jid",
            "notify", "host", "off_cnt", "value", "1", "xmlns", "result", "media_conn", "read", "offline", "mediatype",
            "presence", "edit", "notification", "get", "item", "phash", "skmsg", "text", "status", "broadcast", "g.us",
            "hostname", "contact", "image", "set", "participants", "0", "chatstate", "media", "success", "ib",
            "subject", "picture", "seen", "ping", "w", "retry", "unavailable", "config", "msg", "ip6", "ip4", "video",
            "ttl", "auth_ttl", "max_buckets", "count", "composing", "call", "w:p", "auth", "call-creator", "props",
            "last", "creation", "location", "hash", "bits", "list", "gcm", "deny", "call-id", "pop", "subscribe", "te",
            "preview", "multicast", "gif", "code", "relaylatency", "download", "primary", "pkmsg", "action", "order",
            "add", "delivery", "routing_info", "edge_routing", "dns_domain", "w:m", "available", "mmg.whatsapp.net",
            "contacts", "fallback", "download_buckets", "name", "audio", "in", "played", "fail", "platform",
            "urn:xmpp:ping", "fna", "upload", "ptt", "urn:xmpp:whatsapp:push", "verified_name", "paused", "update",
            "key", "out", "error", "query", "true", "business", "atn", "401", "usync", "delete", "unread", "w:stats",
            "w:profile:picture", "url", "sidelist", "net", "medium", "state", "sticker", "active", "frc", "prop", "web",
            "encrypt", "identity", "verified_level", "document", "w:compress", "w:gp2", "latency", "mode", "transport",
            "registration", "opus", "rate", "keygen", "encopt", "profile", "priority", "orientation", "mute", "unknown",
            "none", "resume", "offer", "ver", "capability", "sid", "index", "context", "terminate", "transaction-id",
            "false", "default", "business_hours_config", "serial", "reason", "side_list", "version", "screen_width",
            "stream:error", "tsoffline", "features", "token", "relay", "videostate", "contact_remove", "contact_add",
            "remove", "tag", "refresh", "protocol", "e", "resume_check", "media_type", "w:web", "invite", "group",
            "readreceipts", "note.m4r", "jabber:iq:privacy", "disable", "background", "delta", "direct_path",
            "conflict", "skey", "preaccept", "admin", "signature", "404", "item-not-found", "day_of_week", "accept",
            "interactive", "timeoffline", "apple", "sync", "open_time", "close_time", "user_add", "full",
            "screen_height", "timeout", "duration", "audio_duration", "voip_settings", "callee_updated_payload",
            "description", "rte", "not-authorized", "groups", "voip", "uploadfieldstat"
        ]

        self.secondaryDictionary = [
           "lg", "lc", "s_t", "s_o", "Opening.m4r", "feature", "complete", "allow", "from_ip", "to_ip", "creator",
            "reject", "video_duration", "maxfpp", "rc_dyn", "privacy", "ip_config", "enable_ssrc_demux", "re", "proto",
            "latency_update_threshold", "category", "timestamp", "specific_hours", "options", "url_text", "nack",
            "aud_pkt_reorder_pct", "server-error", "invalid", "cond_net_medium", "vertical", "canonical", "passive",
            "is_biz", "w:g2", "cond_range_rtt", "encode", "dtx", "group_info", "ts", "business_hours", "timezone",
            "target_bitrate", "end", "modify", "en", "user_remove", "minfpp", "superadmin", "request",
            "enable_audio_oob_fec_feature", "log", "userrate", "vid_rc", "max_bitrate", "init_bwe", "test_flags",
            "max_tx_rott_based_bitrate", "max_bytes", "init_bitrate", "use_local_probing_rx_bitrate", "open_24h",
            "mtu_size", "enable_audio_pkt_piggyback_for_sender", "enable_audio_piggyback_feature",
            "enable_audio_oob_fec_for_sender", "audio_piggyback_timeout_msec", "audio_oob_fec_max_pkts",
            "cond_range_packet_loss_pct", "video_codec_priority", "source_action", "rows_seen", "ad_position", "event",
            "Tri-tone.caf", "rc", "promote", "off", "enable_periodical_aud_rr_processing",
            "cond_range_target_total_bitrate", "cond_congestion_signal_mask", "cond_congestion_no_rtcp_thr",
            "cond_congestion_no_init_rtt_thr", "group_update", "author", "interruption", "keys", "address", "403",
            "identity_verification", "chord.m4r", "forbidden", "enc_supported", "enc_rekey", "body", "email", "thu",
            "begin", "wed", "tue", "busy", "mon", "fri", "all", "website", "bamboo.m4r", "live", "battery", "os",
            "browser", "encrypt_video", "encrypt_v2", "encrypt_url", "encrypt_location", "encrypt_image",
            "encrypt_group_gen2", "encrypt_contact", "encrypt_blist", "encrypt_audio", "client", "aurora.m4r",
            "connected", "Glass.caf", "sat", "recipient", "create", "rotate", "popcorn.m4r", "fbip", "caller_bad_asn",
            "sonar", "mediaretry", "dirty", "longitude", "latitude", "405", "callee_bad_asn", "source", "elapsed",
            "circles.m4r", "final", "not-allowed", "new", "complete.m4r", "status_session_summary", "event_seq",
            "locked", "hello.m4r", "xor_cipher", "p2", "p1", "enabled", "vcard", "vid_rc_dyn", "sun", "demote",
            "required", "video_max_edge", "video_max_bitrate", "status_video_max_duration", "status_video_max_bitrate",
            "status_image_quality", "status_image_max_edge", "media_max_autodownload", "max_subject",
            "max_participants", "max_keys", "image_quality", "image_max_kbytes", "image_max_edge", "file_max_size",
            "lists", "gif_provider", "payments_disable_switch_psp", "keys.m4r", "microsoft", "old", "p256dh", "kaios",
            "endpoint", "appointment_only", "attestation", "w:biz", "status_entry", "low", "small_call_btn",
            "force_long_connect", "qcount", "leave", "flowcontrol", "clear", "pulse.m4r", "Boing.caf", "participating",
            "Bell.caf", "synth.m4r", "w:ads", "crypto", "response", "powersave", "test", "Chrome", "input.m4r",
            "start", "announcement", "cond_range_target_bitrate", "other", "2fa", "digest", "prof-services",
            "America/Sao_Paulo", "cond_peer_net_medium", "bank", "clean", "Harp.caf", "te2", "fanout", "livelocation",
            "maxbwe", "jb_max_playout_dist", "TimePassing.caf", "urn:xmpp:whatsapp:account", "Windows 10",
            "Xylophone.caf", "size", "nonce", "501", "expiration", "Desktop", "google", "w:b", "relay_id", "blacklist",
            "locales", "outgoing", "password", "url_number", "mms_vcache_aggregation_enabled", "unsubscribe", "jws",
            "business_profile", "relayelection", "bitrate", "retail", "not_announcement", "raw", "ot", "oid",
            "Asia/Calcutta", "Asia/Kolkata", "cond_range_remb_minus_peer_rx_br", "sender_inc_ratio",
            "enable_cc_bwe_slow_ramp_up", "cc_bwe_slow_ramp_up_peer_rx_bitrate",
            "cc_bwe_slow_ramp_up_ceiling_multiplier", "wa_zero_rate_sig", "terminated", "batterystate", "[]", "apparel",
            "urn:xmpp:whatsapp:dirty", "Asia/Jakarta", "409", "target_bitrate_upper_bound", "peer_state", "whitelist",
            "rekey", "406",
            "Windows 7", "cache", "edu", "400", "spam_list", "spam_flow", "wns", "contact_array", "302", "410",
            "languagepack", "mms_media_key_ttl", "challenge", "health", "max_encode_width", "bank-ref-id", "cc",
            "max_fps", "codec_type", "entertain", "paid_message", "407", "auto", "psa", "beauty", "failure", "stop",
            "bypassed", "402", "aec", "500", "portpredicting", "travel", "max_target_bitrate",
            "comb_psnr_sample_interval", "govt", "not-a-biz", "video_frame_crc_sample_interval",
            "enable_pli_for_crc_mismatch", "gdpr", "grocery", "min_target_bitrate", "enable_frame_dropper",
            "normalize", "ns", "Mac OS 10.13.6", "America/Belem", "ad", "hsm", "after", "key_frame_interval", "503",
            "event-plan", "additive_sender_bwe_inc_near_max", "Asia/Kuala_Lumpur", "finance", "gone", "Firefox",
            "force_additive_sender_bwe_inc", "America/Bogota", "c0", "c1", "c2", "504", "c3",
            "vpx_max_intra_bitrate_pct", "pli_key_frame_pct", "Mac OS 10.14.0", "psnr_resolution_ctrl_sample_size",
            "overshoot_rate_sample_interval", "overshoot_rate_ema_sample_size",
            "overshoot_rate_downgrade_threshold_pct", "enc_psnr_downgrade_threshold", "restaurant", "vp8_cpu", "agc",
            "spam", "high", "bwe", "Mac OS 10.14.1", "expiration_ts", "Africa/Lagos", "codec_sub_type",
            "vid_rc_battery", "Mac OS 10.10.1", "Windows 8.1", "bank-phone-number", "Safari", "status_v2",
            "gif_search", "use_audio_packet_rate", "audio_encode_offload", "offset", "transport_stats_p2p_threshold",
            "spam_call_threshold_seconds", "enable_upnp", "enable_preaccept_received_update",
            "enable_new_transport_stats", "connected_if_received_data", "vad_threshold", "precise_rx_timestamps_mask",
            "p2p_request_timeout", "non_speech_bitrate", "maxfpp_duration", "echo_detector_mode", "echo_detector_impl",
            "disable_agc", "caller_end_call_threshold", "call_start_delay", "android_call_connected_toast",
            "aecm_adapt_step_size", "cancel_offer", "wa_log_time_series", "waLogTimeSeries", "account",
            "delay_based_bwe_trendline_filter_enabled", "delay_based_bwe_bitrate_estimator_enabled", "bwe_impl",
            "hotel", "Mac OS 10.12.6", "America/Mexico_City", "on_rtp", "#resource-limit", "nonprofit", "Asia/Karachi",
            "Asia/Riyadh", "en-GB", "rejected", "chat", "unlocked", "America/Manaus", "block_dialog",
            "America/Argentina/Buenos_Aires", "not-acceptable", "cbr", "maxrtt", "low_data_usage_bitrate",
            "complexity", "algorithm", "targetlevel", "limiterenable", "ec_threshold", "ec_off_threshold",
            "compressiongain", "use_udp_relay", "use_tcp_relay", "use_new_ping_format",
            "tcp_relay_bind_timeout_in_msec", "username", "unsigned_mode", "biz_status", "America/Recife", "audience",
            "internal", "create_certificate", "Opera", "Europe/Istanbul", "min_packet_loss_pct", "Linux x86_64",
            "setup_failed", "enc_rekey_retry", "Mac OS 10.11.6", "max_packet_loss_pct", "low_threshold",
            "Africa/Johannesburg", "America/Araguaina", "prev", "420", "max_capture_width", "cond_rtt_ema_alpha",
            "cond_range_ema_rtt", "America/Noronha", "Apex.m4r", "invisible", "Africa/Harare", "Asia/Makassar",
            "internal-server-error", "Europe/Rome", "p2p_pay", "x", "Europe/Madrid", "America/Lima", "net_medium",
            "Africa/Cairo", "force_logout", "Asia/Dubai", "max", "Africa/Nairobi", "Mac OS 10.13.3", "Edge",
            "Africa/Accra", "aecm", "favorites", "America/Guayaquil", "biz", "America/Asuncion", "Beacon.m4r", "408",
            "rusr", "rexp", "rproc", "rusrreg", "vp8_static_threshold", "packet_loss_mode",
            "no_rtcp_received_threshold", "no_data_received_threshold", "min_decrease_factor_on_congestion",
            "max_key_frame_mode_bitrate", "low_battery_notify_threshold", "initial_rtt_congestion_threshold",
            "equalize_packet_sizes", "drop_threshold", "cellular_bitrate", "rtt_congestion_step", "account_info",
            "America/La_Paz", "nack_rtt_interactive_threshold", "America/Fortaleza", "transaction", "Mac OS 10.13.4",
            "ka", "Europe/Moscow", "Mac OS 10.10.5", "vpx_min_qp", "Asia/Jerusalem", "America/Santo_Domingo", "vpa",
            "relay_bind_failed", "America/Campo_Grande", "Asia/Aden", "America/Caracas", "Asia/Hong_Kong",
            "Asia/Almaty", "America/Santiago", "Windows 8", "es-MX", "Pacific/Midway", "Africa/Dar_es_Salaam",
            "Europe/Berlin", "Mac OS 10.13.5", "America/Costa_Rica", "Asia/Beirut", "America/New_York",
            "Africa/Porto-Novo", "Linux i686", "Mac OS 10.10.4", "logout", "America/Montevideo", "ack_smb",
            "Mac OS 10.14", "Europe/Amsterdam", "460", "tos2", "Asia/Kuwait", "accept_smb", "optout",
            "America/Guatemala", "Asia/Amman", "Africa/Casablanca", "Africa/Lome", "backoff", "psp-routing",
            "Windows XP", "America/Panama", "America/Tegucigalpa", "amr", "Europe/London", "no-raw-e2e", "Asia/Muscat",
            "upi", "havehash", "Africa/Douala", "psp", "Ubuntu", "min", "adm", "Mac OS 10.13.2", "Mac OS 10.13.1",
            "America/Buenos_Aires", "Asia/Singapore", "Asia/Damascus", "meta", "rtcp_vid_plr_max_disorder_dist",
            "rtcp_use_new_plr", "rtcp_aud_plr_max_disorder_dist", "min_elastic_disorder_buf_size_in_frames",
            "max_audio_frame_disorder_distance", "aud_disorder_dist_hist_reset_interv_in_sec", "Mac OS 10.11",
            "Asia/Shanghai", "Africa/Kampala", "Mac OS 10.13", "Asia/Baku", "America/Chihuahua", "provider-type",
            "product_catalog", "ICICI", "Asia/Bishkek", "GMT", "Asia/Bahrain", "Asia/Qatar", "Asia/Bangkok",
            "Africa/Brazzaville", "America/El_Salvador", "US", "max_rtt", "builtin", "credential-id",
            "America/Jamaica", "Mac OS 10.12.5", "Unauthorized", "427", "iOS 8.2", "Mac OS 10.9.5", "pay",
            "encr_media", "device-id", "Asia/Colombo", "stage", "Brazil/East", "w:pay", "accept2", "Mac OS 10.11.1",
            "page", "bad-request", "height", "expires", "transaction-prefix", "America/Cancun", "width",
            "xml-not-well-formed", "Africa/Khartoum", "rim", "es", "Mac OS 10.14.2", "pt", "wa-support-phone-number",
            "push", "silent", "BR", "nodal", "Africa/Kigali", "counter", "amount", "Chromium OS 11021.56.0",
            "Asia/Brunei", "Africa/Maputo", "Africa/Abidjan", "Pacific/Majuro", "Africa/Dakar",
            "max_audio_ts_jitter_ms", "Chromium", "accept_pay", "Europe/Brussels", "Africa/Lusaka", "Mac OS 10.12",
            "Africa/Blantyre", "seq-no", "Asia/Tehran", "pt-PT", "Ubuntu Chromium", "policy", "America/Managua",
            "Europe/Andorra", "smb_tos", "enable", "Europe/Bucharest", "android_record_preset", "ex",
            "America/Boa_Vista", "en-AU", "GB", "sms-prefix", "sms-gateways", "providers", "upi-bank-info",
            "Mac OS 10.12.3", "free", "sender-alias", "receiver-alias", "is_vpa", "bank-transaction-id",
            "America/Eirunepe", "Asia/Yekaterinburg", "Mac OS 10.11.5", "receiver", "America/Tijuana",
            "America/Port_of_Spain", "currency", "America/Port-au-Prince", "uri", "Asia/Baghdad", "Africa/Ouagadougou",
            "sender", "Mac OS 10.13.0", "android_audio_engine", "limit", "pin-format-version", "otp-length",
            "mpin-length", "is-mpin-set", "bank-name", "atm-pin-length", "account-number", "account-name",
            "America/Chicago", "America/Los_Angeles", "upi-batch", "message-id", "default-debit", "default-credit",
            "price", "Mac OS 10.12.0", "Asia/Vladivostok", "America/Barbados", "Europe/Paris", "Asia/Krasnoyarsk",
            "w:biz:catalog", "w:auth:token", "Mac OS 10.11.4", "Asia/Yakutsk", "Mac OS 10.12.4", "America/Bahia", "ip",
            "cond_min_packet_loss_pct", "cond_max_rtt", "America/Toronto", "Africa/Luanda", "Asia/Dhaka",
            "America/Hermosillo", "visible", "Europe/Zurich", "provider", "mmid", "Africa/Libreville",
            "Africa/Addis_Ababa", "self", "Africa/Ceuta", "caller_timeout", "lang", "total", "Windows Vista",
            "limited", "Africa/Niamey", "ifsc-code", "created", "account-ref-id", "Africa/Windhoek",
            "America/Bahia_Banderas", "status_ad", "call_info", "ICIWC", "304", "pin", "Mac OS 10.11.3", "banks",
            "ads", "Asia/Jayapura", "audio_fps_threshold", "Atlantic/Azores", "delay", "Atlantic/Canary",
            "verification-data", "notif-allowed", "nodal-allowed", "Atlantic/South_Georgia", "iOS Messenger",
            "terminator", "mpin", "America/Godthab", "sms-phone-number", "mcc", "Asia/Oral", "Africa/Kinshasa", "fbid",
            "Europe/Lisbon", "Mac OS 10.12.1", "Linux", "Mac OS 10.12.2", "server", "Europe/Athens", "Asia/Taipei",
            "Europe/Vienna", "receiver-vpa", "future", "Mac OS 10.11.0", "vpas", "Vivaldi", "Africa/Gaborone",
            "America/Monterrey", "first", "Europe/Kiev", "token-type", "min_media", "valid", "psp-config",
            "Mac OS 10.10", "Africa/Bamako", "ar", "Africa/Mogadishu", "owner", "Chromium OS 10895.78.0",
            "America/Puerto_Rico", "Africa/Bujumbura",
            "upi-get-vpa", "sender-vpa", "feature-not-implemented", "Africa/Mbabane", "America/Phoenix", "428",
            "Poland", "America/Guadeloupe", "k1", "America/Cordoba", "America/Anguilla", "Asia/Ho_Chi_Minh", "INR",
            "America/Nassau", "fr", "SUCCESS", "Europe/Minsk", "US/Indiana-Starke", "America/Atikokan",
            "Indian/Mauritius", "sts", "link", "Europe/Kaliningrad", "America/Mazatlan", "Europe/Helsinki",
            "Mac OS 10.10.3", "Africa/Freetown", "Europe/Sarajevo", "Mac OS 10.11.2", "Europe/Tirane", "upi-get-token",
            "speed", "Australia/Perth", "paid", "America/Denver", "America/Paramaribo", "tos", "ru", "America/Detroit",
            "Asia/Tbilisi", "sound", "sufficient-balance", "Europe/Dublin", "Asia/Seoul", "Australia/Sydney",
            "iOS 12.0.1", "get-methods", "Indian/Christmas", "Asia/Magadan", "Europe/Warsaw", "America/Halifax",
            "upi-get-accounts", "uncallable", "element_name", "Turkey", "ES", "Atlantic/Madeira", "show", "before",
            "MX", "tracking_token", "Africa/Algiers", "#pay-tos-not-accepted", "undefined", "Mac OS 10.6.8",
            "violation", "actor", "America/Antigua", "Mac OS 10.9", "Mac OS 10.8.5", "Africa/Maseru", "cancel",
            "Asia/Manila", "America/Merida", "Africa/Tripoli", "iOS 12.1", "Mac OS 10.7.5", "upi-bind-device", "wait",
            "upi-intent-to-send", "upi-get-blocked-vpas", "pcm", "missing", "America/St_Johns", "sender_loss_high",
            "Mac OS 10.10.2", "Mac OS 10.7.3", "Atlantic/Cape_Verde", "get-transactions", "Etc/GMT+3", "Fedora",
            "America/Indiana/Indianapolis", "Africa/Nouakchott", "upi-check-mpin", "mp3", "Mac OS 10.10.0",
            "Asia/Tokyo", "kind", "k0", "expired", "America/Anchorage", "tr", "Asia/Novosibirsk", "upi-register-vpa",
            "otp", "cts", "Indian/Mayotte", "America/Dawson", "pid-setup", "America/Regina", "America/Maceio",
            "Africa/Lubumbashi", "US/Michigan", "America/Cuiaba", "Asia/Kamchatka", "upgrade", "iOS 11.4.1",
            "Asia/Omsk", "Asia/Katmandu", "policy-violation", "Pacific/Honolulu", "Europe/Riga", "Asia/Vientiane",
            "Africa/Banjul", "Android 8.0.0", "Europe/Zagreb", "Europe/Samara", "Europe/Belgrade", "upi-list-keys",
            "hi", "should_monitor_audio_health", "cost", "Asia/Pontianak", "Antarctica/Davis", "America/Guyana",
            "Europe/Stockholm", "America/Vancouver", "America/Porto_Velho", "file", "Africa/Tunis", "wallet-balance",
            "ent_load_test", "Pacific/Auckland", "State Bank Of India", "Europe/Prague", "de", "Indian/Maldives",
            "Asia/Kabul", "Asia/Aqtau", "it", "Asia/Phnom_Penh", "Africa/Conakry", "error-text", "error-code",
            "balance", "Zulu", "Mac OS 10.8", "America/Belize", "method", "arch 64", "Unexpected wa_fb_api error",
            "INITIAL", "Etc/GMT+4", "Asia/Tashkent", "America/Rio_Branco", "send", "W-SU", "Asia/Nicosia",
            "Asia/Irkutsk", "America/Punta_Arenas", "America/Aruba", "iOS 10.3.1", "Chromium OS 11151.17.0",
            "upi-vpa-sync", "America/Edmonton", "nl", "Asia/Yerevan", "Android 7.0", "ad_invalidated", "Libya",
            "Asia/Kathmandu", "tizen", "note", "iOS 11.4", "Pacific/Fiji", "Europe/Budapest", "Asia/Rangoon",
            "http://etherx.jabber.org/streams", "WET", "Africa/Malabo", "urn:xmpp:whatsapp:sync", "srtp",
            "catalog_status", "Chromium OS 10895.56.0", "Australia/Brisbane", "Asia/Qyzylorda", "Asia/Aqtobe",
            "everyone", "Africa/Ndjamena", "rtt", "lsp", "Jamaica", "Europe/Bratislava", "Canada/Atlantic",
            "Asia/Dushanbe", "wma", "view_slot_total", "view_slot", "view_media_total", "view_media", "time_gap",
            "request_time_gap", "min_total", "Singapore", "Pacific/Guam", "Mac OS 10.6", "Europe/Malta",
            "Europe/Chisinau", "Asia/Saigon", "qr", "nokia", "Mac OS 10.9.4", "Europe/Sofia", "Europe/Monaco",
            "Chile/Continental", "Africa/Monrovia", "#pay-tos-v2-not-accepted", "jabber:iq:last", "cta", "WebKit",
            "Asia/Dili", "America/Ojinaga", "upi-user-set-up", "received", "owning", "iOS 12.0", "field",
            "advertising_id", "adder", "GMT+05:30", "Chromium OS 10718.88.2", "America/St_Kitts", "America/Grand_Turk",
            "America/Dominica", "whatsapp:hsm:facebook:alerts", "stat", "port", "device", "creative",
            "Pacific/Tongatapu", "Europe/Copenhagen"
        ]

This is very rough solution but I was able to make messages and group messages working.

@iacup can you hep me sove this error #3000

andrewpedia commented 6 months ago

Hi, I think I found a solution. First you need to set latest protocol version into noise.layer.py (both WA header and WANoise protocol init):

class YowNoiseLayer(YowLayer):
    DEFAULT_PUSHNAME = "yowsup"
    HEADER = b'WA\x03\x00'
    EDGE_HEADER = b'ED\x00\x01'
    EVENT_HANDSHAKE_FAILED = "org.whatsapp.yowsup.layer.noise.event.handshake_failed"

    def __init__(self):
        super(YowNoiseLayer, self).__init__()
        self._wa_noiseprotocol = WANoiseProtocol(
            3, 0, protocol_state_callbacks=self._on_protocol_state_changed
        )  # type: WANoiseProtocol

        ...

Then, you should be able to login, however, you will receive some nonsense messages from upper layers. That's because the token dictionary has changed completely. I copied the dictionary into tokendictionary.py as follows

  def __init__(self):
        self.dictionary = [
            "", "xmlstreamstart", "xmlstreamend", "type", "id", "from", "receipt", "t", "s.whatsapp.net", "message",
            "iq", "to", "participant", "ack", "enc", "plaintext_size", "compressed_size", "class", "v", "user", "jid",
            "notify", "host", "off_cnt", "value", "1", "xmlns", "result", "media_conn", "read", "offline", "mediatype",
            "presence", "edit", "notification", "get", "item", "phash", "skmsg", "text", "status", "broadcast", "g.us",
            "hostname", "contact", "image", "set", "participants", "0", "chatstate", "media", "success", "ib",
            "subject", "picture", "seen", "ping", "w", "retry", "unavailable", "config", "msg", "ip6", "ip4", "video",
            "ttl", "auth_ttl", "max_buckets", "count", "composing", "call", "w:p", "auth", "call-creator", "props",
            "last", "creation", "location", "hash", "bits", "list", "gcm", "deny", "call-id", "pop", "subscribe", "te",
            "preview", "multicast", "gif", "code", "relaylatency", "download", "primary", "pkmsg", "action", "order",
            "add", "delivery", "routing_info", "edge_routing", "dns_domain", "w:m", "available", "mmg.whatsapp.net",
            "contacts", "fallback", "download_buckets", "name", "audio", "in", "played", "fail", "platform",
            "urn:xmpp:ping", "fna", "upload", "ptt", "urn:xmpp:whatsapp:push", "verified_name", "paused", "update",
            "key", "out", "error", "query", "true", "business", "atn", "401", "usync", "delete", "unread", "w:stats",
            "w:profile:picture", "url", "sidelist", "net", "medium", "state", "sticker", "active", "frc", "prop", "web",
            "encrypt", "identity", "verified_level", "document", "w:compress", "w:gp2", "latency", "mode", "transport",
            "registration", "opus", "rate", "keygen", "encopt", "profile", "priority", "orientation", "mute", "unknown",
            "none", "resume", "offer", "ver", "capability", "sid", "index", "context", "terminate", "transaction-id",
            "false", "default", "business_hours_config", "serial", "reason", "side_list", "version", "screen_width",
            "stream:error", "tsoffline", "features", "token", "relay", "videostate", "contact_remove", "contact_add",
            "remove", "tag", "refresh", "protocol", "e", "resume_check", "media_type", "w:web", "invite", "group",
            "readreceipts", "note.m4r", "jabber:iq:privacy", "disable", "background", "delta", "direct_path",
            "conflict", "skey", "preaccept", "admin", "signature", "404", "item-not-found", "day_of_week", "accept",
            "interactive", "timeoffline", "apple", "sync", "open_time", "close_time", "user_add", "full",
            "screen_height", "timeout", "duration", "audio_duration", "voip_settings", "callee_updated_payload",
            "description", "rte", "not-authorized", "groups", "voip", "uploadfieldstat"
        ]

        self.secondaryDictionary = [
           "lg", "lc", "s_t", "s_o", "Opening.m4r", "feature", "complete", "allow", "from_ip", "to_ip", "creator",
            "reject", "video_duration", "maxfpp", "rc_dyn", "privacy", "ip_config", "enable_ssrc_demux", "re", "proto",
            "latency_update_threshold", "category", "timestamp", "specific_hours", "options", "url_text", "nack",
            "aud_pkt_reorder_pct", "server-error", "invalid", "cond_net_medium", "vertical", "canonical", "passive",
            "is_biz", "w:g2", "cond_range_rtt", "encode", "dtx", "group_info", "ts", "business_hours", "timezone",
            "target_bitrate", "end", "modify", "en", "user_remove", "minfpp", "superadmin", "request",
            "enable_audio_oob_fec_feature", "log", "userrate", "vid_rc", "max_bitrate", "init_bwe", "test_flags",
            "max_tx_rott_based_bitrate", "max_bytes", "init_bitrate", "use_local_probing_rx_bitrate", "open_24h",
            "mtu_size", "enable_audio_pkt_piggyback_for_sender", "enable_audio_piggyback_feature",
            "enable_audio_oob_fec_for_sender", "audio_piggyback_timeout_msec", "audio_oob_fec_max_pkts",
            "cond_range_packet_loss_pct", "video_codec_priority", "source_action", "rows_seen", "ad_position", "event",
            "Tri-tone.caf", "rc", "promote", "off", "enable_periodical_aud_rr_processing",
            "cond_range_target_total_bitrate", "cond_congestion_signal_mask", "cond_congestion_no_rtcp_thr",
            "cond_congestion_no_init_rtt_thr", "group_update", "author", "interruption", "keys", "address", "403",
            "identity_verification", "chord.m4r", "forbidden", "enc_supported", "enc_rekey", "body", "email", "thu",
            "begin", "wed", "tue", "busy", "mon", "fri", "all", "website", "bamboo.m4r", "live", "battery", "os",
            "browser", "encrypt_video", "encrypt_v2", "encrypt_url", "encrypt_location", "encrypt_image",
            "encrypt_group_gen2", "encrypt_contact", "encrypt_blist", "encrypt_audio", "client", "aurora.m4r",
            "connected", "Glass.caf", "sat", "recipient", "create", "rotate", "popcorn.m4r", "fbip", "caller_bad_asn",
            "sonar", "mediaretry", "dirty", "longitude", "latitude", "405", "callee_bad_asn", "source", "elapsed",
            "circles.m4r", "final", "not-allowed", "new", "complete.m4r", "status_session_summary", "event_seq",
            "locked", "hello.m4r", "xor_cipher", "p2", "p1", "enabled", "vcard", "vid_rc_dyn", "sun", "demote",
            "required", "video_max_edge", "video_max_bitrate", "status_video_max_duration", "status_video_max_bitrate",
            "status_image_quality", "status_image_max_edge", "media_max_autodownload", "max_subject",
            "max_participants", "max_keys", "image_quality", "image_max_kbytes", "image_max_edge", "file_max_size",
            "lists", "gif_provider", "payments_disable_switch_psp", "keys.m4r", "microsoft", "old", "p256dh", "kaios",
            "endpoint", "appointment_only", "attestation", "w:biz", "status_entry", "low", "small_call_btn",
            "force_long_connect", "qcount", "leave", "flowcontrol", "clear", "pulse.m4r", "Boing.caf", "participating",
            "Bell.caf", "synth.m4r", "w:ads", "crypto", "response", "powersave", "test", "Chrome", "input.m4r",
            "start", "announcement", "cond_range_target_bitrate", "other", "2fa", "digest", "prof-services",
            "America/Sao_Paulo", "cond_peer_net_medium", "bank", "clean", "Harp.caf", "te2", "fanout", "livelocation",
            "maxbwe", "jb_max_playout_dist", "TimePassing.caf", "urn:xmpp:whatsapp:account", "Windows 10",
            "Xylophone.caf", "size", "nonce", "501", "expiration", "Desktop", "google", "w:b", "relay_id", "blacklist",
            "locales", "outgoing", "password", "url_number", "mms_vcache_aggregation_enabled", "unsubscribe", "jws",
            "business_profile", "relayelection", "bitrate", "retail", "not_announcement", "raw", "ot", "oid",
            "Asia/Calcutta", "Asia/Kolkata", "cond_range_remb_minus_peer_rx_br", "sender_inc_ratio",
            "enable_cc_bwe_slow_ramp_up", "cc_bwe_slow_ramp_up_peer_rx_bitrate",
            "cc_bwe_slow_ramp_up_ceiling_multiplier", "wa_zero_rate_sig", "terminated", "batterystate", "[]", "apparel",
            "urn:xmpp:whatsapp:dirty", "Asia/Jakarta", "409", "target_bitrate_upper_bound", "peer_state", "whitelist",
            "rekey", "406",
            "Windows 7", "cache", "edu", "400", "spam_list", "spam_flow", "wns", "contact_array", "302", "410",
            "languagepack", "mms_media_key_ttl", "challenge", "health", "max_encode_width", "bank-ref-id", "cc",
            "max_fps", "codec_type", "entertain", "paid_message", "407", "auto", "psa", "beauty", "failure", "stop",
            "bypassed", "402", "aec", "500", "portpredicting", "travel", "max_target_bitrate",
            "comb_psnr_sample_interval", "govt", "not-a-biz", "video_frame_crc_sample_interval",
            "enable_pli_for_crc_mismatch", "gdpr", "grocery", "min_target_bitrate", "enable_frame_dropper",
            "normalize", "ns", "Mac OS 10.13.6", "America/Belem", "ad", "hsm", "after", "key_frame_interval", "503",
            "event-plan", "additive_sender_bwe_inc_near_max", "Asia/Kuala_Lumpur", "finance", "gone", "Firefox",
            "force_additive_sender_bwe_inc", "America/Bogota", "c0", "c1", "c2", "504", "c3",
            "vpx_max_intra_bitrate_pct", "pli_key_frame_pct", "Mac OS 10.14.0", "psnr_resolution_ctrl_sample_size",
            "overshoot_rate_sample_interval", "overshoot_rate_ema_sample_size",
            "overshoot_rate_downgrade_threshold_pct", "enc_psnr_downgrade_threshold", "restaurant", "vp8_cpu", "agc",
            "spam", "high", "bwe", "Mac OS 10.14.1", "expiration_ts", "Africa/Lagos", "codec_sub_type",
            "vid_rc_battery", "Mac OS 10.10.1", "Windows 8.1", "bank-phone-number", "Safari", "status_v2",
            "gif_search", "use_audio_packet_rate", "audio_encode_offload", "offset", "transport_stats_p2p_threshold",
            "spam_call_threshold_seconds", "enable_upnp", "enable_preaccept_received_update",
            "enable_new_transport_stats", "connected_if_received_data", "vad_threshold", "precise_rx_timestamps_mask",
            "p2p_request_timeout", "non_speech_bitrate", "maxfpp_duration", "echo_detector_mode", "echo_detector_impl",
            "disable_agc", "caller_end_call_threshold", "call_start_delay", "android_call_connected_toast",
            "aecm_adapt_step_size", "cancel_offer", "wa_log_time_series", "waLogTimeSeries", "account",
            "delay_based_bwe_trendline_filter_enabled", "delay_based_bwe_bitrate_estimator_enabled", "bwe_impl",
            "hotel", "Mac OS 10.12.6", "America/Mexico_City", "on_rtp", "#resource-limit", "nonprofit", "Asia/Karachi",
            "Asia/Riyadh", "en-GB", "rejected", "chat", "unlocked", "America/Manaus", "block_dialog",
            "America/Argentina/Buenos_Aires", "not-acceptable", "cbr", "maxrtt", "low_data_usage_bitrate",
            "complexity", "algorithm", "targetlevel", "limiterenable", "ec_threshold", "ec_off_threshold",
            "compressiongain", "use_udp_relay", "use_tcp_relay", "use_new_ping_format",
            "tcp_relay_bind_timeout_in_msec", "username", "unsigned_mode", "biz_status", "America/Recife", "audience",
            "internal", "create_certificate", "Opera", "Europe/Istanbul", "min_packet_loss_pct", "Linux x86_64",
            "setup_failed", "enc_rekey_retry", "Mac OS 10.11.6", "max_packet_loss_pct", "low_threshold",
            "Africa/Johannesburg", "America/Araguaina", "prev", "420", "max_capture_width", "cond_rtt_ema_alpha",
            "cond_range_ema_rtt", "America/Noronha", "Apex.m4r", "invisible", "Africa/Harare", "Asia/Makassar",
            "internal-server-error", "Europe/Rome", "p2p_pay", "x", "Europe/Madrid", "America/Lima", "net_medium",
            "Africa/Cairo", "force_logout", "Asia/Dubai", "max", "Africa/Nairobi", "Mac OS 10.13.3", "Edge",
            "Africa/Accra", "aecm", "favorites", "America/Guayaquil", "biz", "America/Asuncion", "Beacon.m4r", "408",
            "rusr", "rexp", "rproc", "rusrreg", "vp8_static_threshold", "packet_loss_mode",
            "no_rtcp_received_threshold", "no_data_received_threshold", "min_decrease_factor_on_congestion",
            "max_key_frame_mode_bitrate", "low_battery_notify_threshold", "initial_rtt_congestion_threshold",
            "equalize_packet_sizes", "drop_threshold", "cellular_bitrate", "rtt_congestion_step", "account_info",
            "America/La_Paz", "nack_rtt_interactive_threshold", "America/Fortaleza", "transaction", "Mac OS 10.13.4",
            "ka", "Europe/Moscow", "Mac OS 10.10.5", "vpx_min_qp", "Asia/Jerusalem", "America/Santo_Domingo", "vpa",
            "relay_bind_failed", "America/Campo_Grande", "Asia/Aden", "America/Caracas", "Asia/Hong_Kong",
            "Asia/Almaty", "America/Santiago", "Windows 8", "es-MX", "Pacific/Midway", "Africa/Dar_es_Salaam",
            "Europe/Berlin", "Mac OS 10.13.5", "America/Costa_Rica", "Asia/Beirut", "America/New_York",
            "Africa/Porto-Novo", "Linux i686", "Mac OS 10.10.4", "logout", "America/Montevideo", "ack_smb",
            "Mac OS 10.14", "Europe/Amsterdam", "460", "tos2", "Asia/Kuwait", "accept_smb", "optout",
            "America/Guatemala", "Asia/Amman", "Africa/Casablanca", "Africa/Lome", "backoff", "psp-routing",
            "Windows XP", "America/Panama", "America/Tegucigalpa", "amr", "Europe/London", "no-raw-e2e", "Asia/Muscat",
            "upi", "havehash", "Africa/Douala", "psp", "Ubuntu", "min", "adm", "Mac OS 10.13.2", "Mac OS 10.13.1",
            "America/Buenos_Aires", "Asia/Singapore", "Asia/Damascus", "meta", "rtcp_vid_plr_max_disorder_dist",
            "rtcp_use_new_plr", "rtcp_aud_plr_max_disorder_dist", "min_elastic_disorder_buf_size_in_frames",
            "max_audio_frame_disorder_distance", "aud_disorder_dist_hist_reset_interv_in_sec", "Mac OS 10.11",
            "Asia/Shanghai", "Africa/Kampala", "Mac OS 10.13", "Asia/Baku", "America/Chihuahua", "provider-type",
            "product_catalog", "ICICI", "Asia/Bishkek", "GMT", "Asia/Bahrain", "Asia/Qatar", "Asia/Bangkok",
            "Africa/Brazzaville", "America/El_Salvador", "US", "max_rtt", "builtin", "credential-id",
            "America/Jamaica", "Mac OS 10.12.5", "Unauthorized", "427", "iOS 8.2", "Mac OS 10.9.5", "pay",
            "encr_media", "device-id", "Asia/Colombo", "stage", "Brazil/East", "w:pay", "accept2", "Mac OS 10.11.1",
            "page", "bad-request", "height", "expires", "transaction-prefix", "America/Cancun", "width",
            "xml-not-well-formed", "Africa/Khartoum", "rim", "es", "Mac OS 10.14.2", "pt", "wa-support-phone-number",
            "push", "silent", "BR", "nodal", "Africa/Kigali", "counter", "amount", "Chromium OS 11021.56.0",
            "Asia/Brunei", "Africa/Maputo", "Africa/Abidjan", "Pacific/Majuro", "Africa/Dakar",
            "max_audio_ts_jitter_ms", "Chromium", "accept_pay", "Europe/Brussels", "Africa/Lusaka", "Mac OS 10.12",
            "Africa/Blantyre", "seq-no", "Asia/Tehran", "pt-PT", "Ubuntu Chromium", "policy", "America/Managua",
            "Europe/Andorra", "smb_tos", "enable", "Europe/Bucharest", "android_record_preset", "ex",
            "America/Boa_Vista", "en-AU", "GB", "sms-prefix", "sms-gateways", "providers", "upi-bank-info",
            "Mac OS 10.12.3", "free", "sender-alias", "receiver-alias", "is_vpa", "bank-transaction-id",
            "America/Eirunepe", "Asia/Yekaterinburg", "Mac OS 10.11.5", "receiver", "America/Tijuana",
            "America/Port_of_Spain", "currency", "America/Port-au-Prince", "uri", "Asia/Baghdad", "Africa/Ouagadougou",
            "sender", "Mac OS 10.13.0", "android_audio_engine", "limit", "pin-format-version", "otp-length",
            "mpin-length", "is-mpin-set", "bank-name", "atm-pin-length", "account-number", "account-name",
            "America/Chicago", "America/Los_Angeles", "upi-batch", "message-id", "default-debit", "default-credit",
            "price", "Mac OS 10.12.0", "Asia/Vladivostok", "America/Barbados", "Europe/Paris", "Asia/Krasnoyarsk",
            "w:biz:catalog", "w:auth:token", "Mac OS 10.11.4", "Asia/Yakutsk", "Mac OS 10.12.4", "America/Bahia", "ip",
            "cond_min_packet_loss_pct", "cond_max_rtt", "America/Toronto", "Africa/Luanda", "Asia/Dhaka",
            "America/Hermosillo", "visible", "Europe/Zurich", "provider", "mmid", "Africa/Libreville",
            "Africa/Addis_Ababa", "self", "Africa/Ceuta", "caller_timeout", "lang", "total", "Windows Vista",
            "limited", "Africa/Niamey", "ifsc-code", "created", "account-ref-id", "Africa/Windhoek",
            "America/Bahia_Banderas", "status_ad", "call_info", "ICIWC", "304", "pin", "Mac OS 10.11.3", "banks",
            "ads", "Asia/Jayapura", "audio_fps_threshold", "Atlantic/Azores", "delay", "Atlantic/Canary",
            "verification-data", "notif-allowed", "nodal-allowed", "Atlantic/South_Georgia", "iOS Messenger",
            "terminator", "mpin", "America/Godthab", "sms-phone-number", "mcc", "Asia/Oral", "Africa/Kinshasa", "fbid",
            "Europe/Lisbon", "Mac OS 10.12.1", "Linux", "Mac OS 10.12.2", "server", "Europe/Athens", "Asia/Taipei",
            "Europe/Vienna", "receiver-vpa", "future", "Mac OS 10.11.0", "vpas", "Vivaldi", "Africa/Gaborone",
            "America/Monterrey", "first", "Europe/Kiev", "token-type", "min_media", "valid", "psp-config",
            "Mac OS 10.10", "Africa/Bamako", "ar", "Africa/Mogadishu", "owner", "Chromium OS 10895.78.0",
            "America/Puerto_Rico", "Africa/Bujumbura",
            "upi-get-vpa", "sender-vpa", "feature-not-implemented", "Africa/Mbabane", "America/Phoenix", "428",
            "Poland", "America/Guadeloupe", "k1", "America/Cordoba", "America/Anguilla", "Asia/Ho_Chi_Minh", "INR",
            "America/Nassau", "fr", "SUCCESS", "Europe/Minsk", "US/Indiana-Starke", "America/Atikokan",
            "Indian/Mauritius", "sts", "link", "Europe/Kaliningrad", "America/Mazatlan", "Europe/Helsinki",
            "Mac OS 10.10.3", "Africa/Freetown", "Europe/Sarajevo", "Mac OS 10.11.2", "Europe/Tirane", "upi-get-token",
            "speed", "Australia/Perth", "paid", "America/Denver", "America/Paramaribo", "tos", "ru", "America/Detroit",
            "Asia/Tbilisi", "sound", "sufficient-balance", "Europe/Dublin", "Asia/Seoul", "Australia/Sydney",
            "iOS 12.0.1", "get-methods", "Indian/Christmas", "Asia/Magadan", "Europe/Warsaw", "America/Halifax",
            "upi-get-accounts", "uncallable", "element_name", "Turkey", "ES", "Atlantic/Madeira", "show", "before",
            "MX", "tracking_token", "Africa/Algiers", "#pay-tos-not-accepted", "undefined", "Mac OS 10.6.8",
            "violation", "actor", "America/Antigua", "Mac OS 10.9", "Mac OS 10.8.5", "Africa/Maseru", "cancel",
            "Asia/Manila", "America/Merida", "Africa/Tripoli", "iOS 12.1", "Mac OS 10.7.5", "upi-bind-device", "wait",
            "upi-intent-to-send", "upi-get-blocked-vpas", "pcm", "missing", "America/St_Johns", "sender_loss_high",
            "Mac OS 10.10.2", "Mac OS 10.7.3", "Atlantic/Cape_Verde", "get-transactions", "Etc/GMT+3", "Fedora",
            "America/Indiana/Indianapolis", "Africa/Nouakchott", "upi-check-mpin", "mp3", "Mac OS 10.10.0",
            "Asia/Tokyo", "kind", "k0", "expired", "America/Anchorage", "tr", "Asia/Novosibirsk", "upi-register-vpa",
            "otp", "cts", "Indian/Mayotte", "America/Dawson", "pid-setup", "America/Regina", "America/Maceio",
            "Africa/Lubumbashi", "US/Michigan", "America/Cuiaba", "Asia/Kamchatka", "upgrade", "iOS 11.4.1",
            "Asia/Omsk", "Asia/Katmandu", "policy-violation", "Pacific/Honolulu", "Europe/Riga", "Asia/Vientiane",
            "Africa/Banjul", "Android 8.0.0", "Europe/Zagreb", "Europe/Samara", "Europe/Belgrade", "upi-list-keys",
            "hi", "should_monitor_audio_health", "cost", "Asia/Pontianak", "Antarctica/Davis", "America/Guyana",
            "Europe/Stockholm", "America/Vancouver", "America/Porto_Velho", "file", "Africa/Tunis", "wallet-balance",
            "ent_load_test", "Pacific/Auckland", "State Bank Of India", "Europe/Prague", "de", "Indian/Maldives",
            "Asia/Kabul", "Asia/Aqtau", "it", "Asia/Phnom_Penh", "Africa/Conakry", "error-text", "error-code",
            "balance", "Zulu", "Mac OS 10.8", "America/Belize", "method", "arch 64", "Unexpected wa_fb_api error",
            "INITIAL", "Etc/GMT+4", "Asia/Tashkent", "America/Rio_Branco", "send", "W-SU", "Asia/Nicosia",
            "Asia/Irkutsk", "America/Punta_Arenas", "America/Aruba", "iOS 10.3.1", "Chromium OS 11151.17.0",
            "upi-vpa-sync", "America/Edmonton", "nl", "Asia/Yerevan", "Android 7.0", "ad_invalidated", "Libya",
            "Asia/Kathmandu", "tizen", "note", "iOS 11.4", "Pacific/Fiji", "Europe/Budapest", "Asia/Rangoon",
            "http://etherx.jabber.org/streams", "WET", "Africa/Malabo", "urn:xmpp:whatsapp:sync", "srtp",
            "catalog_status", "Chromium OS 10895.56.0", "Australia/Brisbane", "Asia/Qyzylorda", "Asia/Aqtobe",
            "everyone", "Africa/Ndjamena", "rtt", "lsp", "Jamaica", "Europe/Bratislava", "Canada/Atlantic",
            "Asia/Dushanbe", "wma", "view_slot_total", "view_slot", "view_media_total", "view_media", "time_gap",
            "request_time_gap", "min_total", "Singapore", "Pacific/Guam", "Mac OS 10.6", "Europe/Malta",
            "Europe/Chisinau", "Asia/Saigon", "qr", "nokia", "Mac OS 10.9.4", "Europe/Sofia", "Europe/Monaco",
            "Chile/Continental", "Africa/Monrovia", "#pay-tos-v2-not-accepted", "jabber:iq:last", "cta", "WebKit",
            "Asia/Dili", "America/Ojinaga", "upi-user-set-up", "received", "owning", "iOS 12.0", "field",
            "advertising_id", "adder", "GMT+05:30", "Chromium OS 10718.88.2", "America/St_Kitts", "America/Grand_Turk",
            "America/Dominica", "whatsapp:hsm:facebook:alerts", "stat", "port", "device", "creative",
            "Pacific/Tongatapu", "Europe/Copenhagen"
        ]

This is very rough solution but I was able to make messages and group messages working. how to get the latest token dict ? thanks a lot