Skip to content

[SendPhoto]: 400 Bad request (chat_id not found) #1321

@bekzod-murotboyev

Description

@bekzod-murotboyev

Describe the bug
org.telegram.telegrambots.meta.api.methods.send.SendPhoto class fields are not annotated with @JsonProperty annotation, that is why always telegram bot api returns 400 Bad request with content of "chat_id" not found!

To Reproduce
Steps to reproduce the behavior:

  1. Go to org.telegram.telegrambots.meta.api.methods.send.SendPhoto
  2. Annotate chatId and other fields with @JsonProperty annotation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions