Twitchapi

Latest version: v4.4.0

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

Scan your dependencies

Page 4 of 9

3.4.1

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

3.4.0

:color: info

**Twitch**

- Added the following new Endpoints:

- "Update Shield Mode Status" :const:`~twitchAPI.twitch.Twitch.update_shield_mode_status()`
- "Get Shield Mode Status" :const:`~twitchAPI.twitch.Twitch.get_shield_mode_status()`

- Added the new :code:`tags` Field to the following Endpoints:

- "Get Streams" :const:`~twitchAPI.twitch.Twitch.get_streams()`
- "Get Followed Streams" :const:`~twitchAPI.twitch.Twitch.get_followed_streams()`
- "Search Channels" :const:`~twitchAPI.twitch.Twitch.search_channels()`
- "Get Channel Information" :const:`~twitchAPI.twitch.Twitch.get_channel_information()`
- "Modify Channel Information" :const:`~twitchAPI.twitch.Twitch.modify_channel_information()`

- Improved documentation

**EventSub**

- Added the following new Topics:

- "Shield Mode End" :const:`~twitchAPI.eventsub.EventSub.listen_channel_shield_mode_end()`
- "Shield Mode Begin" :const:`~twitchAPI.eventsub.EventSub.listen_channel_shield_mode_begin()`

- Improved type hints of :code:`listen_` functions
- Added check if given callback is a coroutine to :code:`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
- :const:`~twitchAPI.chat.Chat.join_room()` now times out when it was unable to join a room instead of being infinitly stuck
- :const:`~twitchAPI.chat.Chat.join_room()` now returns a list of channels it was unable to join
- Added :const:`~twitchAPI.chat.Chat.join_timeout`
- Added :const:`~twitchAPI.chat.Chat.unregister_command()`
- Added :const:`~twitchAPI.chat.Chat.unregister_event()`
- Added the following new Events:

- :const:`~twitchAPI.types.ChatEvent.USER_LEFT` - Triggered when a user leaves a chat channel
- :const:`~twitchAPI.types.ChatEvent.CHAT_CLEARED` - Triggered when a user was timed out, banned or the messages where deleted
- :const:`~twitchAPI.types.ChatEvent.WHISPER` - Triggered when a user sends a whisper message to the bot

**OAuth**

- fixed :const:`~twitchAPI.oauth.UserAuthenticator.authenticate()` getting stuck when :code:`user_token` is provided (thanks https://github.com/Tempystral )

3.3.0

:color: info

- Added new event to Chat: :const:`~twitchAPI.types.ChatEvent.MESSAGE_DELETE` which triggers whenever a single message got deleted in a channel
- Added :const:`~twitchAPI.chat.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 :const:`~twitchAPI.types.ChatRoom.room_id` always being Null

3.2.2

- Fixed return type of :const:`~twitchAPI.twitch.Twitch.get_broadcaster_subscriptions()`
- removed any field starting with underscore from :const:`~twitchAPI.object.TwitchObject.to_dict()`

3.2.1

- Fixed bug that resulted in a timeout when reading big API requests
- Optimized the use of Sessions, slight to decent performance optimization for API requests, especially for async generators

3.2.0

:color: info

- Made the used loggers available for easy logging configuration
- added the option to set the chat command prefix via :const:`~twitchAPI.chat.Chat.set_prefix()`
- :const:`~twitchAPI.twitch.Twitch.set_user_authentication()` now also throws a :const:`~twitchAPI.types.MissingScopeException` when no scope is given. (thanks https://github.com/aw-was-here )

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.