PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
798 stars 162 forks source link

(2.x) Whisper #146

Closed rn4n closed 2 years ago

rn4n commented 3 years ago

Hello! 🙋🏻‍♂️

Would it be possible to provide a way to send a whisper message for an user? Something like:

async def reply_as_whisper(ctx):
   await ctx.whisper("username", "The message content.")

I came from tmi (whisper implementation) and this is a feature that I miss. I don't know if this information is relevant but, to use the whisper feature, it is first necessary to verify the bot through this Twitch form.

Thanks for this library and for all abstraction provided.

nxtlo commented 3 years ago

ctx.whisper should be await not async

rn4n commented 3 years ago

@nxtlo fixed, thanks.

IAmTomahawkx commented 3 years ago

Hi there, Twitchio V1 is currently in critical-fix-only mode right now, as we put our efforts towards wrapping up Twitchio 2. If Twitchio2 does not already implement your issue, please change your issue title to be prefixed with (2.x)

also sorry for the slow response

EvieePy commented 3 years ago

Sorry it's taken some time to get to this. We are discussing how we would like to implement such a feature.

chillymosh commented 2 years ago

Twitch now block whispers unless you are verified and whitelisted bot, and even then they do not guarantee it will be successful.

rn4n commented 2 years ago

In fact this "problem" of preventing the use of whispers has always existed, but Twitch doesn't make it clear, usually just find out about the need to verify a bot when started to searching on the developer forums.

Still, I think the library can implement this feature and make it available for use, just like tmi.js did. That issue about instability is already mentioned by some developers and normal users in their user voice. Let Twitch working on it. 😅

Once the feature is implemented, I can include a note in the TwitchIO documentation about the need for bot verification, as well as referral links to do this. If Twitch itself doesn't care to make it clear, we can make it clear to the people who use the library.

chillymosh commented 2 years ago

The best resource for this issue is the official Twitch API Discord with the devs and they have always stated it's unreliable, even for verified bots.