Twitchapi

Latest version: v4.2.0

Safety actively analyzes 629994 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

3.5.1

Chat
----

- Fixed KeyError in clear chat event

3.5.0

Twitch
------

- Added the following new Endpoints:
- "Get Charity Campaign" `Twitch.get_charity_campaign()`
- "Get Charity Donations" `Twitch.get_charity_donations()`
- Fixed bug that made the user refresh token invalid in some rare edge cases

EventSub
--------

- Added the following new Topics:
- "Charity Campaign Start" `EventSub.listen_channel_charity_campaign_start()`
- "Charity Campaign Stop" `EventSub.listen_channel_charity_campaign_stop()`
- "Charity Campaign Progress" `EventSub.listen_channel_charity_campaign_progress()`
- "Charity Campaign Donate" `EventSub.listen_channel_charity_campaign_donate()`

PubSub
------

- Added `PubSub.is_connected()`
- Fixed bug that prevented a clean shutdown on Linux

Chat
----

- Added automatic rate limit handling to channel joining and message sending
- `Chat.send_message()` now waits till reconnected when Chat got disconnected
- `Chat.send_raw_irc_message()` now waits till reconnected when Chat got disconnected
- Added `Chat.is_connected()`
- Added `Chat.is_ready()`
- Chat now cleanly handles reconnect requests

OAuth
-----

- Added new Auth Scope `AuthScope.CHANNEL_READ_CHARITY`
- Fixed bug that prevented a clean shutdown on Linux

3.4.1

- fixed bug that prevented newer pip versions from gathering the dependencies

3.4.0

Twitch
------

- Added the following new Endpoints:
- "Update Shield Mode Status" `Twitch.update_shield_mode_status()`
- "Get Shield Mode Status" `Twitch.get_shield_mode_status()`
- Added the new `tags` Field to the following Endpoints:
- "Get Streams" `Twitch.get_streams()`
- "Get Followed Streams" `Twitch.get_followed_streams()`
- "Search Channels" `Twitch.search_channels()`
- "Get Channel Information" `Twitch.get_channel_information()`
- "Modify Channel Information" `Twitch.modify_channel_information()`
- Improved documentation

EventSub
--------

- Added the following new Topics:
- "Shield Mode End" `EventSub.listen_channel_shield_mode_end()`
- "Shield Mode Begin" `EventSub.listen_channel_shield_mode_begin()`
- Improved type hints of `listen_` functions
- Added check if given callback is a coroutine to `listen_` functions

PubSub
------

- Fixed AttributeError when reconnecting

Chat
----

- Expanded documentation on Events and Commands
- Fixed room cache being randomly destroyed over time
- Improved message handling performance drastically for high volume chat bots
- Fixed AttributeError when reconnecting
- `Chat.join_room()` now times out when it was unable to join a room instead of being infinitly stuck
- `Chat.join_room()` now returns a list of channels it was unable to join
- Added `Chat.join_timeout`
- Added `Chat.unregister_command()`
- Added `Chat.unregister_event()`
- Added the following new Events:
- `ChatEvent.USER_LEFT` - Triggered when a user leaves a chat channel
- `ChatEvent.CHAT_CLEARED` - Triggered when a user was timed out, banned or the messages where deleted
- `ChatEvent.WHISPER` - Triggered when a user sends a whisper message to the bot

OAuth
-----

- fixed `UserAuthenticator.authenticate()` getting stuck when `user_token` is provided (thanks Tempystral)

3.3.0

- Added new event to Chat: `ChatEvent.MESSAGE_DELETE` which triggers whenever a single message got deleted in a channel
- Added `Chat.send_raw_irc_message()` method for sending raw irc commands to the websocket. Use with care!
- Fixed missing state cleanup after closing Chat, preventing the same instance from being started again
- fixed `ChatRoom.room_id` always being Null

3.2.2

- Fixed return type of `Twitch.get_broadcaster_subscriptions()`
- removed any field starting with underscore from `TwitchObject.to_dict()`

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.