Git Product home page Git Product logo

Comments (16)

littlecodersh avatar littlecodersh commented on May 28, 2024 3

@kirahan 目前已经可以获取群用户的Uin

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024 3

@lw-lin 这个消息

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@kirahan
有三种方法:

  1. 确定唯一的群名,通过PYQuanPin进行判断
  2. 自己建群,并创建一个特定名字的群用于读取自己的OwnerUin,通过该OwnerUin进行判断
  3. 制作可视化界面,显示名字与头像,通过勾选进行判断

from itchat.

1265858594 avatar 1265858594 commented on May 28, 2024

要实现签到, 还要确定用户的 id ,有一个方式,

  1. 将用户的 remarkname 绑定用户id
  2. 建立签到群,每次扫码登入时就把 UserName 更新
  3. 当用户在群内送出特定信息, 比如 签到 时, 判定该 id 签到完成

from itchat.

Morriaty-The-Murderer avatar Morriaty-The-Murderer commented on May 28, 2024

@littlecodersh
你好,我测试了一下方法二的自己建群,OwnerUin和其他群一样都是0
难道微信已经屏蔽了这个了?

还有没其他确定用户和群唯一标志的的方法呢?

Update:找到原因了,get_contact中的群信息OwnerUin都是0,需要用get_batch_contact。

但这种方法还是不行,应为群名是任意成员可改的
现在想到的是群主给自己在群里改一个唯一标识的DisplayName,用这个做群的唯一标识。

from itchat.

Morriaty-The-Murderer avatar Morriaty-The-Murderer commented on May 28, 2024

@1265858594
但是RemarkName可能改动比较频繁的,bot重新登录+用户改名就无法确定唯一用户了。
还有一个DisplayName我一直没搞明白是什么

from itchat.

soulmachine avatar soulmachine commented on May 28, 2024

@littlecodersh 今天试了下,itchat.update_chatroom(msg['FromUserName'], detailedMember=True) 返回的MemberList,里面的Uin全部是0,现在微信是不是把Uin屏蔽了?

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@soulmachine 群聊的uin已经屏蔽了,用户的uin还可以通过特定的消息获取部分。

from itchat.

soulmachine avatar soulmachine commented on May 28, 2024

@littlecodersh 明白了,谢谢!

from itchat.

lw-lin avatar lw-lin commented on May 28, 2024

用户的uin还可以通过特定的消息获取部分。

@littlecodersh 请问是哪些特定消息来?谢谢!

from itchat.

moc1 avatar moc1 commented on May 28, 2024

@littlecodersh 这个特定的消息我打印出来并没有uin,调用的函数连uin都没有,是不是微信都屏蔽了

from itchat.

moc1 avatar moc1 commented on May 28, 2024

顺便问一下群里面没人管理了吗?我加群都没回复通不通过

from itchat.

pengyuwei avatar pengyuwei commented on May 28, 2024

最后是怎么解决的?

from itchat.

wubaojie avatar wubaojie commented on May 28, 2024

@littlecodersh 通过搜索陌生人可以获取到陌生人的uin么

from itchat.

hcchengithub avatar hcchengithub commented on May 28, 2024

ChatRoom 雖然只有 nickName 能用,機會在 ChatRoom 的 nickName 只要【部分相符】即可,與個人必須【完全一致】不同。因此,只要 ChatRoom 的 nickName 能有部分特徵不變,就有機會湊合著用。我不知道這個性質是 itchat 還是 WeChat 造成的。

from itchat.

MollyMmm avatar MollyMmm commented on May 28, 2024

请问现在chatroom的uin没有办法获取了? 我尝试在获取用户uin的地方找, 但是没有找到.

from itchat.

Related Issues (20)

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.