-
Method Summary
boolean
onChannelPost(AbstractTelegramBot bot,
org.telegram.telegrambots.meta.api.objects.Update update,
org.telegram.telegrambots.meta.api.objects.message.Message message)
Fired whenever someone posts message within a channel
-
Method Details
-
onChannelPost
boolean onChannelPost(AbstractTelegramBot bot,
org.telegram.telegrambots.meta.api.objects.Update update,
org.telegram.telegrambots.meta.api.objects.message.Message message)
throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
Fired whenever someone posts message within a channel
- Parameters:
bot - the bot
update - the update
message - the message
- Returns:
true if handler 'consumed' that event, aborting notification to other handlers, false otherwise, continuing to look for handler that would return true
- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException - the exception