Skip to content

Bump twitchapi from 3.11.0 to 4.5.0 #1157

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github May 26, 2025

Bumps twitchapi from 3.11.0 to 4.5.0.

Release notes

Sourced from twitchapi's releases.

v4.5.0

This version drops PubSub from the library

Twitch

  • Fixed Twitch.get_emote_sets() being parsed incorrectly (thanks @​moralrecordings )
  • Fixed Exceptions when passing None to unsuspecting parameters in various functions
  • Fixed returning wrong object for Twitch.get_channel_emotes()
  • Added new parameter for_source_only to Twitch.send_chat_message()
  • Added new parameter subscription_id to Twitch.get_eventsub_subscriptions()
  • Added new parameter target_token to Twitch.get_eventsub_subscriptions()
  • Added new parameter target_token to Twitch.delete_eventsub_subscription()

EventSub

  • Added new data related to shared chat to the payload of listen_channel_chat_message()
  • Added message metadata to all event payloads
  • Added message deduplication to EventSubWebsocket
  • Added the following new Topics:
    • "Channel Bits Use" listen_channel_bits_use()
    • "Channel Points Automatic Reward Redemption v2" listen_channel_points_automatic_reward_redemption_add_v2()
  • Fixed potentially targeting the wrong access token depending on transport and available tokens

Other

  • Improved type hints all over the library
  • Fixed AttributeError in TwitchObject.__repr__() for unset attributes

v4.4.0

Twitch

  • Added the following new Endpoint:
    • "Get Shared Chat Session" Twitch.get_shared_chat_session()

EventSub

  • Added the following new Topics:
    • "Channel Shared Chat Session Begin" EventSubBase.listen_channel_shared_chat_begin()
    • "Channel Shared Chat Session Update" EventSubBase.listen_channel_shared_chat_update()
    • "Channel Shared Chat Session End" EventSubBase.listen_channel_shared_chat_end()
  • Added the "Golden Kappa Train" info to the following Topics:
    • EventSubBase.listen_hype_train_begin()
    • EventSubBase.listen_hype_train_progress()
    • EventSubBase.listen_hype_train_end()

Chat

  • Added new middleware SharedChatOnlyCurrent which restricts the messages to only the current room (thanks @​Latent-Logic )
  • Added support for source room and user tags
  • Added new option no_shared_chat_messages which controls if shared chat messages should be filtered out or not (thanks @​Latent-Logic )

... (truncated)

Changelog

Sourced from twitchapi's changelog.

:orphan:

Changelog


Latest Version


.. dropdown:: Version 4.5.0 :color: info :open:

.. important:: This version drops PubSub from the library

Twitch

  • Fixed :const:~twitchAPI.twitch.Twitch.get_emote_sets() being parsed incorrectly (thanks https://github.com/moralrecordings )
  • Fixed Exceptions when passing None to unsuspecting parameters in various functions
  • Fixed returning wrong object for :const:~twitchAPI.twitch.Twitch.get_channel_emotes()
  • Added new parameter :const:~twitchAPI.twitch.Twitch.send_chat_message.params.for_source_only to :const:~twitchAPI.twitch.Twitch.send_chat_message()
  • Added new parameter :const:~twitchAPI.twitch.Twitch.get_eventsub_subscriptions.params.subscription_id to :const:~twitchAPI.twitch.Twitch.get_eventsub_subscriptions()
  • Added new parameter :const:~twitchAPI.twitch.Twitch.get_eventsub_subscriptions.params.target_token to :const:~twitchAPI.twitch.Twitch.get_eventsub_subscriptions()
  • Added new parameter :const:~twitchAPI.twitch.Twitch.delete_eventsub_subscription.params.target_token to :const:~twitchAPI.twitch.Twitch.delete_eventsub_subscription()

EventSub

  • Added new data related to shared chat to the payload of :const:~twitchAPI.eventsub.base.EventSubBase.listen_channel_chat_message()

  • Added message metadata to all event payloads

  • Added message deduplication to :const:~twitchAPI.eventsub.websocket.EventSubWebsocket

  • Added the following new Topics:

    • "Channel Bits Use" :const:~twitchAPI.eventsub.base.EventSubBase.listen_channel_bits_use()
    • "Channel Points Automatic Reward Redemption v2" :const:~twitchAPI.eventsub.base.EventSubBase.listen_channel_points_automatic_reward_redemption_add_v2()
  • Fixed potentially targeting the wrong access token depending on transport and available tokens

Other

  • Improved type hints all over the library
  • Fixed AttributeError in :const:TwitchObject.__repr__() for unset attributes

Older Versions


.. dropdown:: Version 4.4.0 :color: info

**Twitch**

... (truncated)

Commits
  • 7cf1d89 build: bump version to 4.5.0
  • 0765a86 docs: added docs for 4.5.0
  • b9d7fbc fix: targeting wrong token for EventSubWebsocket when user auth is set. #349
  • 3b72751 feat: added message deduplication to EventSubWebsocket #348
  • 37230da feat: added message metadata to EventSub payload #340
  • 2d2f242 fix: fixed issue for iter results from previous refactor
  • 6ab07cc feat: added new topic version 2 for "Channel Points Automatic Reward Redempti...
  • 23d4eab feat: added new parameter subscription_id to Twitch.get_eventsub_subscriptions
  • 7b85bb6 feat: added new for_source_only parameter to Twitch.send_chat_message
  • c3fd619 feat: added missing data related to shared chat to ChannelChatMessageData for...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Bump twitchapi dependency from v3.11.0 to v4.5.0 in requirements, bringing in breaking changes, new API parameters, endpoints, and EventSub improvements.

Bug Fixes:

  • Fix emote sets parsing and wrong object return for channel emotes
  • Fix exceptions when passing None to various parameters
  • Fix wrong access token selection in EventSub transports
  • Fix AttributeError in TwitchObject.repr for unset attributes

Enhancements:

  • Remove PubSub support from the library
  • Add new parameters to Twitch API methods (for_source_only, subscription_id, target_token)
  • Extend EventSub payloads with shared chat data and message metadata
  • Introduce message deduplication in EventSubWebsocket
  • Add new EventSub topics (Channel Bits Use, Channel Points Automatic Reward Redemption v2)
  • Improve type hints across the library

Build:

  • Update twitchapi version to 4.5.0 in requirements-run.txt

@dependabot dependabot bot requested a review from aw-was-here May 26, 2025 15:35
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github May 26, 2025

The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 26, 2025
Copy link

sourcery-ai bot commented May 26, 2025

Reviewer's Guide

Updated the project’s twitchapi dependency from version 3.11.0 to 4.5.0, bringing in the latest fixes, new parameters, and feature improvements without modifying any source code.

File-Level Changes

Change Details Files
Bump twitchapi dependency version
  • Changed package specifier from 3.11.0 to 4.5.0 in requirements-run.txt
requirements-run.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@dependabot dependabot bot force-pushed the dependabot/pip/twitchapi-4.5.0 branch 3 times, most recently from 46c2af8 to 6af7881 Compare May 31, 2025 16:59
@dependabot dependabot bot force-pushed the dependabot/pip/twitchapi-4.5.0 branch from 6af7881 to 5e6f5d4 Compare June 10, 2025 13:19
Bumps [twitchapi](https://github.com/Teekeks/pyTwitchAPI) from 3.11.0 to 4.5.0.
- [Release notes](https://github.com/Teekeks/pyTwitchAPI/releases)
- [Changelog](https://github.com/Teekeks/pyTwitchAPI/blob/master/docs/changelog.rst)
- [Commits](Teekeks/pyTwitchAPI@v3.11.0...v4.5.0)

---
updated-dependencies:
- dependency-name: twitchapi
  dependency-version: 4.5.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/twitchapi-4.5.0 branch from 5e6f5d4 to ef5d028 Compare June 10, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants