Skip to content

Springram is framework for Telegram based on Spring Framework and Spring Boot.

License

Notifications You must be signed in to change notification settings

demkom58/springram

Repository files navigation

forks stars issues license jitpack

Springram Logo

Springram

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.

How to use

To understand how to work with this framework, you can see the wiki section.

Maven

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>

Gradle

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'
}