Closed nikita36trinta closed 2 years ago
the code is broken for everyone right now. We're all patiently waiting for a fix.
the code is broken for everyone right now. We're all patiently waiting for a fix.
Turned out that fix released. That's why i created this one.
Turned out that fix https://github.com/zerodytrash/TikTok-Live-Connector/issues/66#issuecomment-1268913830. That's why i created this one.
omg thank you! Not sure why you're running into this error, my apologies
Fixed.
Upgrade with pip install TikTokLive --upgrade
Run a simple programm
from TikTokLive import TikTokLiveClient from TikTokLive.types.events import CommentEvent, ConnectEvent, GiftEvent
client: TikTokLiveClient = TikTokLiveClient(unique_id="@xxx")
@client.on("gift") async def on_gift(event: GiftEvent): if event.gift.gift_type == 1: if event.gift.repeat_end == 1: print(f"{event.user.uniqueId} sent {event.gift.repeat_count}x \"{event.gift.extended_gift.name}\"") elif event.gift.gift_type != 1: print(f"{event.user.uniqueId} sent \"{event.gift.extended_gift.name}\"")
if name == 'main': client.run()
Error occurs: Exception has occurred: FailedConnection Multiple cookies exist with name=ttwid