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

my code doesn't work live #612

Open mahdialiabadimoqaddam opened 5 years ago

mahdialiabadimoqaddam commented 5 years ago

this is my onUpdateReceived method body : `

    message.setText(update.getMessage().getFrom().getUserName());

    System.out.println(update.getMessage().getText());
    System.out.println(update.getMessage().getFrom().getUserName());

`

when i run this code in netbeans IDE it doesn't run live and also doesn't send the message back to user

//im new to GitHub by the way. sorry if im bad at it !!

MouamleH commented 5 years ago

https://github.com/rubenlagus/TelegramBots/wiki/Getting-Started