com.pengrad.telegrambot.model.SentWebAppMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model;
import java.io.Serializable;
import java.util.Objects;
/**
* Mirco Ianese
* 20 Apr 2022
*/
public class SentWebAppMessage implements Serializable {
private final static long serialVersionUID = 0L;
private String inline_message_id;
public SentWebAppMessage() {
this.inline_message_id = null;
}
public SentWebAppMessage(String inlineMessageId) {
this.inline_message_id = inlineMessageId;
}
public String inlineMessageId() {
return inline_message_id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SentWebAppMessage that = (SentWebAppMessage) o;
return Objects.equals(inline_message_id, that.inline_message_id);
}
@Override
public int hashCode() {
return inline_message_id != null ? inline_message_id.hashCode() : 0;
}
@Override
public String toString() {
return "SentWebAppMessage{" +
"inline_message_id='" + inline_message_id + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy