Springram is a telegram framework based on the Spring framework and Spring Boot. It gives you the ability to use controllers like in spring web-mvc.
This framework based on rubenlagus' TelegramBots that is Java implementation of Telegram API.
To understand how to work with this framework, you can see the wiki section.
Add jitpack repository to your pom.xml
, like this:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Then add springram-core
dependency and spring-boot
, if you
don't have it already.
<dependencies>
<dependency>
<groupId>com.github.demkom58</groupId>
<artifactId>springram-core</artifactId>
<version>0.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
If you want to use Spring security methods then you should
add springram-core
and spring-security
dependencies.
<dependencies>
<dependency>
<groupId>com.github.demkom58</groupId>
<artifactId>springram-security</artifactId>
<version>0.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependencies>
Add jitpack repository to your build.gradle
, like this:
repositories {
maven { url 'https://jitpack.io' }
}
Then add springram-core
dependency and spring-boot
, if you don't have it already.
dependencies {
implementation 'com.github.demkom58:springram-core:0.5-SNAPSHOT'
implementation 'org.springframework.boot:spring-boot-starter'
}
If you want to use Spring security methods then you should
add springram-core
and spring-security
dependencies.
dependencies {
implementation 'com.github.demkom58:springram-security:0.5-SNAPSHOT'
implementation 'org.springframework.boot:spring-boot-starter-security'
}