r/javahelp • • May 01 '26

Telegram bot. Need some advice

Have a home server, which collects data from temp sensors and stuff (diy smarthome, but handwritten).

Recently got an idea for a project, which would report data (maybe some controls, while I'm not home) through telegram. First idea was a separate telegram account, sitting on the home server. But googling led me to the Telegram bot functionality (with a java lib).

I don't use TG much (only for some contacts, but it is installed on the phone, so... why not), and wanted to know if someone has experience actually making such a project using Java.

The use-case is simple - some scheduled reports (like a graph of how the temp of the street temp sensor was changing during a period of time... generated using javafx... because I like javafx), maybe some controls.

3 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Draaksward_89 May 02 '26

I am trying to grasp how to setup a bot. Do I need to create a group in telegram or something?(yeah, these are questions more related to Telegram and not Java) Or is the bot a standalone channel. How to restrict access to it and so on.

1

u/MeisterBounty May 02 '26

The bot is just a bot. You can add it to conversations / groups after creation. It’s all described in the docs.