rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.76k stars 1.22k forks source link

inlinekeyboardbutton can not set SwitchInlineQueryChosenChat #1391

Open zhanghzong opened 4 months ago

zhanghzong commented 4 months ago
<dependency>
    <groupId>org.telegram</groupId>
    <artifactId>telegrambots</artifactId>
    <version>6.9.7.1</version>
</dependency>

image

Chase22 commented 4 months ago

Please update to 7.0 and check if the issue persists

zhanghzong commented 4 months ago

I have found push versions 7.0 and above in the Maven central warehouse.

image

If I just reference the Maven package. So there's no problem

<dependency>
  <groupId>org.telegram</groupId>
  <artifactId>telegrambots-longpolling</artifactId>
  <version>7.2.0</version>
</dependency>

<dependency>
  <groupId>org.telegram</groupId>
  <artifactId>telegrambots-webhook</artifactId>
  <version>7.2.0</version>
</dependency>

<dependency>
  <groupId>org.telegram</groupId>
  <artifactId>telegrambots-client</artifactId>
  <version>7.2.0</version>
</dependency>

<dependency>
  <groupId>org.telegram</groupId>
  <artifactId>telegrambots-extensions</artifactId>
  <version>7.2.0</version>
</dependency>

Could you please take a look at the specific version number used? Thank you.

<dependency>
  <groupId>org.telegram</groupId>
  <artifactId>telegrambots</artifactId>
  <version>???</version>
</dependency>
rubenlagus commented 4 months ago

There was a big refactoring and telegrambots dependency is now gone, see https://rubenlagus.github.io/TelegramBotsDocumentation/how-to-update-7.html