Twitchapi

Latest version: v4.4.0

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

Scan your dependencies

Page 3 of 9

3.7.0

:color: info

**Twitch**

- Added the following Endpoints:

- "Get AutoMod Settings" :const:`~twitchAPI.twitch.Twitch.get_automod_settings()`
- "Update AutoMod Settings" :const:`~twitchAPI.twitch.Twitch.update_automod_settings()`

- Added :const:`~twitchAPI.twitch.Twitch.session_timeout` config. With this you can optionally change the timeout behavior across the entire library

**OAuth**

- Added the following new AuthScopes:

- :const:`~twitchAPI.types.AuthScope.MODERATOR_READ_AUTOMOD_SETTINGS`
- :const:`~twitchAPI.types.AuthScope.MODERATOR_MANAGE_AUTOMOD_SETTINGS`

3.6.2

- Added :code:`py.typed` file to comply with PEP-561

**Twitch**

- Fixed all Endpoints that use :const:`~twitchAPI.object.AsyncIterTwitchObject` yielding some items multiple times
- added missing field :const:`~twitchAPI.object.TwitchUserFollow.to_login` to :const:`~twitchAPI.twitch.Twitch.get_users_follows()`

3.6.1

:color: info

**EventSub**

- :const:`~twitchAPI.eventsub.EventSub.start()` now waits till the internal web server has fully started up

**Chat**

- Added :const:`~twitchAPI.chat.Chat.is_mod()` function (Thanks https://github.com/stolenvw )
- Made the check if the bot is a moderator in the current channel for message sending rate limiting more consistent (Thanks https://github.com/stolenvw )

3.5.2

**Twitch**

- Fixed :const:`~twitchAPI.twitch.Twitch.end_prediction()` calling NoneType

3.5.1

**Chat**

- Fixed KeyError in clear chat event

3.5.0

:color: info

**Twitch**

- Added the following new Endpoints:

- "Get Charity Campaign" :const:`~twitchAPI.twitch.Twitch.get_charity_campaign()`
- "Get Charity Donations" :const:`~twitchAPI.twitch.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" :const:`~twitchAPI.eventsub.EventSub.listen_channel_charity_campaign_start()`
- "Charity Campaign Stop" :const:`~twitchAPI.eventsub.EventSub.listen_channel_charity_campaign_stop()`
- "Charity Campaign Progress" :const:`~twitchAPI.eventsub.EventSub.listen_channel_charity_campaign_progress()`
- "Charity Campaign Donate" :const:`~twitchAPI.eventsub.EventSub.listen_channel_charity_campaign_donate()`

**PubSub**

- Added :const:`~twitchAPI.pubsub.PubSub.is_connected()`
- Fixed bug that prevented a clean shutdown on Linux

**Chat**

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

**OAuth**

- Added new Auth Scope :const:`~twitchAPI.types.AuthScope.CHANNEL_READ_CHARITY`
- Fixed bug that prevented a clean shutdown on Linux

Page 3 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.