Commit 8270160 1 parent f84f923 commit 8270160 Copy full SHA for 8270160
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ rights. Don't change the description—the bot stores key data there.
5
5
6
6
## Download
7
7
8
- You need Gradle, or Maven, or other build tool
8
+ You need Gradle, Maven, or another build tool
9
9
10
10
[ ![ ] ( https://jitpack.io/v/demidko/telegram-storage.svg )] ( https://jitpack.io/#demidko/telegram-storage )
11
11
@@ -29,8 +29,8 @@ import com.github.demidko.telegram.TelegramStorage.Constructors.newTelegramStora
29
29
data class Person (val name : String , val address : String )
30
30
31
31
fun main () {
32
- val token = " Example Telegram Bot API access token"
33
- val channel = " Example channel name" // or can be numeric id here
32
+ val token = " Bot API token here "
33
+ val channel = " Telegram channel name here"
34
34
val storage = newTelegramStorage<Int , Person >(token, channel)
35
35
36
36
storage[2 ] = Person (" Elon Musk" , " Texas" ) // saved to Telegram channel
You can’t perform that action at this time.
0 commit comments