Come creare un bot per Telegram: Hello World
Vediamo velocemente come creare un Bot per Telegram scritto in Java, usando JTeleBot. Struttura file: pom.xml [code lang=”xml”] <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>hello-word-bot</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>io.github.nixtabyte.telegram</groupId> <artifactId>jtelebot-core</artifactId> <version>0.1.0</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> </dependencies> </project> [/code] log4j.properties: [code lang=”plain”] log4j.rootLogger=INFO, CONSOLE… Read more »