Browse Source

fix usercallbackevent gives wrong user bug

master
mrbesen 7 months ago
parent
commit
e0f531004f
Signed by: MrBesen GPG Key ID: 596B2350DCD67504
  1. 2
      pom.xml
  2. 3
      src/main/java/de/mrbesen/telegram/event/events/UserCallbackEvent.java

2
pom.xml

@ -39,7 +39,7 @@
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20190722</version>
<version>20201115</version>
<scope>compile</scope>
</dependency>
<dependency>

3
src/main/java/de/mrbesen/telegram/event/events/UserCallbackEvent.java

@ -13,9 +13,12 @@ public class UserCallbackEvent extends MessageEvent {
private final String data;
@Getter
private final String ID;
@Getter
private final TUser user;
public UserCallbackEvent(TUser u, String data, String id, TMessage msg) {
super(msg);
user = u;
this.data = data;
this.ID = id;
}

Loading…
Cancel
Save