pro.zackpollard.telegrambot.api.event.chat.message.ContactMessageReceivedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.event.chat.message;
import pro.zackpollard.telegrambot.api.chat.message.Message;
import pro.zackpollard.telegrambot.api.chat.message.content.ContactContent;
/**
* @author Zack Pollard
*/
public class ContactMessageReceivedEvent extends MessageReceivedEvent {
public ContactMessageReceivedEvent(Message message) {
super(message);
}
/**
* Gets the Contact that was received that fired this event
*
* @return The Contanct that was received that fired this event
*/
@Override
public ContactContent getContent() {
return (ContactContent) getMessage().getContent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy