# Problems with obtaining information about the redemption of rewards

**URL:** <https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784>\
**Category:** API\
**Created:** [April 4, 2023, 6:58pm UTC](https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784 "2023-04-04T18:58:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Araragi](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/araragi/32/23830_2.png) [@Araragi](https://staging-discuss.dev.twitch.com/u/Araragi)\
**Post date:** [April 4, 2023, 6:58pm UTC](https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784/1 "2023-04-04T18:58:28Z")

</div>

Greetings! I am writing a chat bot using the TwitchLib library, but I don’t understand how to receive information about the redemption of the reward (the user’s nickname, what reward he received, and most importantly, the bot does not see the message about the redemption of the reward). Could you help me? This is my first experience in programming, so I don’t understand much of what is in the various documentation. 😅 I am making a bot not for my channel, but with the consent of the owner (if it matters). Thank you very much in advance! 😉

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 4, 2023, 6:59pm UTC](https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784/2 "2023-04-04T18:59:26Z")

</div>

Redemptions do not appear in chat

You would need to utilise eventsub or pubsub to recieve redemption information instead.

> **[PubSub](https://dev.twitch.tv/docs/pubsub/)**
>
> PubSub Guide

> **[EventSub](https://dev.twitch.tv/docs/eventsub/)**
>
> EventSub

EventSub is the better of the two options here

---

<div class="post-metadata">

**Author:** ![RealityRipple](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/realityripple/32/17042_2.png) [@RealityRipple](https://staging-discuss.dev.twitch.com/u/RealityRipple)\
**Post date:** [April 5, 2023, 9:14pm UTC](https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784/3 "2023-04-05T21:14:58Z")

</div>

Technically, redemptions can show up as chat messages, but _only_ if the redemption includes a text entry field: they should show up as a normal `PRIVMSG` entry, but with a `custom-reward-id` tag.  
Personally, I like to check both `EventSub` and `PRIVMSG` to get the event as fast as possible, with a cache of handled IDs to prevent duplicate detections. Do note, however, that the `PRIVMSG` details will not include the redeem’s name or description, only it’s generated GUID.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [May 5, 2023, 9:15pm UTC](https://staging-discuss.dev.twitch.com/t/problems-with-obtaining-information-about-the-redemption-of-rewards/44784/4 "2023-05-05T21:15:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
