Skip to content
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

pay_grade is always empty in RoomUserSeqEvent #212

Open
xerovue opened this issue Apr 10, 2024 · 1 comment
Open

pay_grade is always empty in RoomUserSeqEvent #212

xerovue opened this issue Apr 10, 2024 · 1 comment
Assignees

Comments

@xerovue
Copy link

xerovue commented Apr 10, 2024

Describe the bug

In the sample code below

1- rank.user.pay_grade is empty.
2- rank.user is only set for the first 5 records.

from TikTokLive.client.client import TikTokLiveClient
from TikTokLive.events import *

client: TikTokLiveClient = TikTokLiveClient(
    unique_id="@rambovillanueva",
)

@client.on(RoomUserSeqEvent)
async def on_connect(event: RoomUserSeqEvent):
    print('RoomUserSeqEvent')
    for rank in event.ranks_list:
        print(rank.rank,
              rank.score, 
              rank.user.display_id, 
              rank.user.pay_grade)

if __name__ == '__main__':
    client.run()

Sample output

RoomUserSeqEvent
1 403260 juanescorzaelpatron UserPayGrade()
2 257689 .kenia1216 UserPayGrade()
3 39937 jgs.1781 UserPayGrade()
4 35000 allwayshere713 UserPayGrade()
5 34217 jc.mp85 UserPayGrade()
6 30001  UserPayGrade()
7 24797  UserPayGrade()
8 24455  UserPayGrade()
9 18988  UserPayGrade()
10 15108  UserPayGrade()
11 12601  UserPayGrade()
12 10516  UserPayGrade()
13 10001  UserPayGrade()
14 7296  UserPayGrade()
15 6000  UserPayGrade()
16 5300  UserPayGrade()

Package Version

v6.0.4.

Operating System

MacOS

@isaackogan
Copy link
Owner

Not necessarily a bug. Just because there's a proto definition doesn't mean TikTok send that data.

You can try using a sessionid and seeing if that makes a difference but it may very well just not be sent over the web API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants