Go to file
2021-05-24 20:20:10 +07:00
dist Allow build dist 2021-05-21 10:56:21 +07:00
nbproject Updated send message form and build 2021-05-21 10:55:37 +07:00
src/com/cubetiqs/swing Updated send message form and build 2021-05-21 10:55:37 +07:00
.gitignore Allow build dist 2021-05-21 10:56:21 +07:00
build.xml Add java swing send message app with Telegram 2021-05-21 10:50:26 +07:00
manifest.mf Add java swing send message app with Telegram 2021-05-21 10:50:26 +07:00
README.md Add example in java for readme 2021-05-24 20:20:10 +07:00

Example Java Swing for Send Message App with Telegram

  • Telegram Bot Send Message

Example

  • Send Message to Telegram Channel/Group via Bot
String chatId = "TELEGRAM_CHAT_ID";
String token = "TELEGRAM_BOT_TOKEN";
String text = "Your message here";

TelegramBotUtils.sendMessage(
        chatId,
        text,
        token,
        null
);

// OR use provider

TelegramProvider
            .init(token)
            .sendToChatId(chatId)
            .setMessage(text)
            .send();

Contributors