Skip to content

Бот не принимает фотографии #5

@mpavliyev

Description

@mpavliyev

При отправке боту фотографии получаю следующее исключение

Exception in thread "ThreadPoolTaskExecutor-13" java.lang.NullPointerException
	at org.springframework.util.AntPathMatcher.doMatch(AntPathMatcher.java:191)
	at org.springframework.util.AntPathMatcher.extractUriTemplateVariables(AntPathMatcher.java:491)
	at com.github.telegram.mvc.HandlerMethodContainer.lookupHandlerMethod(HandlerMethodContainer.java:26)
	at com.github.telegram.mvc.RequestDispatcher.lambda$execute$0(RequestDispatcher.java:47)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

просто код в контролере

@BotRequest("**")
    public BaseRequest handler(String text,
                               Long chatId,
                               TelegramRequest telegramRequest,
                               TelegramBot telegramBot,
                               Update update,
                               Message message,
                               Chat chat,
                               User user) {
      return new SendMessage(chatId, "я понял сообщения");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions