Skip to content

Commit 4f478e4

Browse files
authored
Merge pull request #1 from asundukov/dev
fix jitpack build problem
2 parents c86ce8e + 7d38cbf commit 4f478e4

File tree

107 files changed

+798
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+798
-129
lines changed

kotlin-telegram-framework/pom.xml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>io.cutebot.telegram</groupId>
9+
<artifactId>kotlin-telegram-bot</artifactId>
10+
<version>1.0</version>
11+
<relativePath>./../</relativePath>
12+
</parent>
13+
14+
<groupId>io.cutebot.telegram.framework</groupId>
15+
<artifactId>kotlin-telegram-framework</artifactId>
16+
<version>1.0.1-RELEASE</version>
17+
18+
<properties>
19+
<kotlin.version>1.3.72</kotlin.version>
20+
<jackson.version>2.11.1</jackson.version>
21+
<apache.http.version>4.5.12</apache.http.version>
22+
23+
<maven.deploy.skip>false</maven.deploy.skip>
24+
</properties>
25+
26+
<dependencies>
27+
<dependency>
28+
<groupId>org.jetbrains.kotlin</groupId>
29+
<artifactId>kotlin-stdlib-jdk8</artifactId>
30+
<version>${kotlin.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.jetbrains.kotlin</groupId>
34+
<artifactId>kotlin-test</artifactId>
35+
<version>${kotlin.version}</version>
36+
<scope>test</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>com.fasterxml.jackson.core</groupId>
40+
<artifactId>jackson-databind</artifactId>
41+
<version>${jackson.version}</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>com.fasterxml.jackson.module</groupId>
45+
<artifactId>jackson-module-kotlin</artifactId>
46+
<version>${jackson.version}</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.apache.httpcomponents</groupId>
50+
<artifactId>httpclient</artifactId>
51+
<version>${apache.http.version}</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>org.apache.httpcomponents</groupId>
55+
<artifactId>httpmime</artifactId>
56+
<version>${apache.http.version}</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.slf4j</groupId>
60+
<artifactId>slf4j-api</artifactId>
61+
<version>1.7.30</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.junit.jupiter</groupId>
65+
<artifactId>junit-jupiter</artifactId>
66+
<version>5.6.2</version>
67+
<scope>test</scope>
68+
</dependency>
69+
</dependencies>
70+
71+
<build>
72+
<sourceDirectory>src/main/kotlin</sourceDirectory>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.jetbrains.kotlin</groupId>
76+
<artifactId>kotlin-maven-plugin</artifactId>
77+
<version>${kotlin.version}</version>
78+
<executions>
79+
<execution>
80+
<id>compile</id>
81+
<phase>compile</phase>
82+
<goals>
83+
<goal>compile</goal>
84+
</goals>
85+
</execution>
86+
<execution>
87+
<id>test-compile</id>
88+
<phase>test-compile</phase>
89+
<goals>
90+
<goal>test-compile</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
<configuration>
95+
<jvmTarget>11</jvmTarget>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-source-plugin</artifactId>
101+
<version>3.2.0</version>
102+
<executions>
103+
<execution>
104+
<id>attach-sources</id>
105+
<phase>verify</phase>
106+
<goals>
107+
<goal>jar-no-fork</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
</plugins>
113+
</build>
114+
115+
116+
</project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package io.cutebot.telegram.bot
2+
3+
import io.cutebot.telegram.bot.model.RawMessage
4+
import io.cutebot.telegram.client.model.TgBotCommands
5+
import io.cutebot.telegram.client.model.inline.TgAnswerInlineQuery
6+
import io.cutebot.telegram.client.model.inline.TgInlineQuery
7+
import io.cutebot.telegram.interaction.model.ChatAnswer
8+
9+
interface Bot {
10+
11+
fun getToken(): String
12+
13+
fun handleInlineQuery(inlineQuery: TgInlineQuery): TgAnswerInlineQuery = TgAnswerInlineQuery(inlineQuery.id)
14+
15+
fun handleMessage(message: RawMessage): ChatAnswer = ChatAnswer.noAnswer()
16+
17+
fun getCommands(): TgBotCommands? = null
18+
}

0 commit comments

Comments
 (0)