rubenlagus / TelegramBots

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

Cannot import lib #696

Closed KaratekHD closed 4 years ago

KaratekHD commented 4 years ago

Hello,

Is it possible that the Getting started guide is out of date? I'm asking because it appears that the TelegramBotsApi class doesn't exist. Screenshot_20191125_165058

Screenshot_20191125_165204

Thank you very much for your help!

~Karatek_HD

rubenlagus commented 4 years ago

It looks like you are not importing the library correctly, the class is completely included:

https://github.com/rubenlagus/TelegramBots/blob/master/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/TelegramBotsApi.java

You can see examples to import it here: https://github.com/rubenlagus/TelegramBots#usage

KaratekHD commented 4 years ago

Figured it out. I imported the lib using Maven and now everything works just fine.