Skip to content

Releases: Teekeks/pyTwitchAPI

v3.9.0

26 Feb 16:11
0c2d5c1
Compare
Choose a tag to compare

Twitch

  • Added the following new Endpoints:

    • "Get Channel Followers" Twitch.get_channel_followers()
    • "Get Followed Channels"Twitch.get_followed_channels()
  • Fixed TypeError: __api_get_request() got an unexpected keyword argument 'body' (Thanks @JC-Chung )

EventSub

  • Added new Topic EventSub.listen_channel_follow_v2()

Chat

  • Bot is now correctly reconnecting and rejoining channels after losing connection
  • added Chat.is_subscriber() (Thanks @stolenvw )
  • added new Event ChatEvent.NOTICE - Triggered when server sends a notice message (Thanks @stolenvw )

v3.8.0

12 Feb 17:01
099d41a
Compare
Choose a tag to compare

Twitch

  • Added the new Endpoint "Send a Shoutout" Twitch.send_a_shoutout()
  • Twitch.get_users_follows() is now marked as deprecated
  • Added missing parameter type to Twitch.get_streams()

Helper

  • Added new Async Generator helper limit(), with this you can limit the amount of results returned from the given AsyncGenerator to a maximum number

EventSub

  • Added the following new Topics:
    • "Channel Shoutout Create" EventSub.listen_channel_shoutout_create()
    • "Channel Shoutout Receive" EventSub.listen_channel_shoutout_receive()

PubSub

  • Added new Topic "Low trust Users" PubSub.listen_low_trust_users()

Chat

  • Improved rate limit handling of Chat.join_room() when joining multiple rooms per call
  • The following functions now all ignore the capitalization of the given chat room:
    • Chat.join_room()
    • Chat.leave_room()
    • Chat.is_mod()
    • Chat.send_message()
  • Added initial_channel to Chat.__init__(), with this you can auto join channels on bot startup
  • Added Chat.is_in_room()
  • Added Chat.log_no_registered_command_handler, with this you can control if the "no registered handler for event" warnings should be logged or not

OAuth

  • Added the following new AuthScopes:
    • AuthScope.MODERATOR_MANAGE_SHOUTOUTS
    • AuthScope.MODERATOR_READ_SHOUTOUTS
    • AuthScope.MODERATOR_READ_FOLLOWERS
  • Improved async handling of UserAuthenticator

v3.7.0

31 Jan 08:01
5d8f6cb
Compare
Choose a tag to compare

Twitch

  • Added the following Endpoints:
    • "Get AutoMod Settings" Twitch.get_automod_settings()
    • "Update AutoMod Settings" Twitch.update_automod_settings()
  • Added Twitch.session_timeout config. With this you can optionally change the timeout behavior across the entire library

OAuth

  • Added the following new AuthScopes:
    • MODERATOR_READ_AUTOMOD_SETTINGS
    • MODERATOR_MANAGE_AUTOMOD_SETTINGS

v3.6.2

27 Jan 12:55
4dd7e8d
Compare
Choose a tag to compare
  • Added py.typed file to comply with PEP-561

Twitch

  • Fixed all Endpoints that use AsyncIterTwitchObject yielding some items multiple times
  • added missing field to_login to Twitch.get_users_follows()

v3.6.1

25 Jan 09:37
24b2823
Compare
Choose a tag to compare

EventSub

  • More improvements to stabilize subscription behavior for certain setups

v3.6.0

25 Jan 07:07
7860c0b
Compare
Choose a tag to compare

EventSub

  • EventSub.start() now waits till the internal web server has fully started up

Chat

  • Added Chat.is_mod() function (Thanks @stolenvw !)
  • Made the check if the bot is a moderator in the current channel for message sending rate limiting more consistent (Thanks @stolenvw !)

v3.5.2

23 Jan 08:44
57573cb
Compare
Choose a tag to compare

Twitch

  • Fixed Twitch.end_prediction() calling NoneType

v3.5.1

22 Jan 23:46
a50a779
Compare
Choose a tag to compare

Chat

  • Fixed KeyError in clear chat event

v3.5.0

20 Jan 21:18
3e5a1e3
Compare
Choose a tag to compare

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

v3.4.1

19 Jan 03:24
3f99279
Compare
Choose a tag to compare
  • fixed bug that prevented newer pip versions from gathering the dependencies