rubenlagus / TelegramBots

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

Support Java 7 or maybe Java 6 #227

Closed mrk1989 closed 6 years ago

mrk1989 commented 7 years ago

Hi. I notice that your library is defined in Java 8 on pom.xml (https://github.com/rubenlagus/TelegramBots/blob/master/telegrambots/pom.xml) .

I kindly ask you to adapt it to Java 7 if Is possible. I download the project TelegramBots and I changed the pom for adapt Java 7. I notice that I get error for lambda's function and also for Integer::compareTo or BiConsumer.

I can spent my time if is helpful for support Java 7. I dont' know if I can....

rubenlagus commented 7 years ago

Neither Java6 or Java7 are supported by Oracle any more:

image

i don't think that we should downgrade libraries to an obsolete version, much better to update obsolete software ;)

mrk1989 commented 7 years ago

I agree with you and the support by Oracle. Also if we did a downgrade libraries, you library can support major platform. I can't ask my client for upgrade Java installation. The same reason will be for a system operating. I still use Windows XP or 7 and I know that is not supported (update software "security" ) from Microsoft.

I can say another thing, Seems that your project is much used from other.

rubenlagus commented 7 years ago

@mrk1989 The problem is that I'd need to make changes in the code to support java6 or java7. And also be really careful when developing new stuff so I don't include non-supported features.