elbekD / kt-telegram-bot

Telegram Bot Library for Kotlin language
MIT License
103 stars 19 forks source link

Update to API 4.6 #18

Closed elbekD closed 4 years ago

dragneelfps commented 4 years ago

@elbekD I would like to work on this.

elbekD commented 4 years ago

@elbekD I would like to work on this.

nice. when you're done, create pull request to master branch

dragneelfps commented 4 years ago

@elbekD I am having problem while running tests. At this line, in file TelegramBotTest.kt:

val reader = Files.newBufferedReader(Paths.get("<>"))

Its throwing java.nio.file.NoSuchFileException: <>. Can you send me your config file with removed token and other sensitive info and replaced with dummy values?

elbekD commented 4 years ago
{
  "token": "",
  "userId": 0,
  "resourcePath": "",
  "photos": [
    "",
    ""
  ],
  "video": "",
  "animation": "",
  "thumb": "",
  "voice": "",
  "msgId": 0,
  "audio": "",
  "document": "",
  "videoNote": "",
  "location": {
    "latitude": 0.0,
    "longitude": 0.0
  },
  "contact": {
    "phone": "",
    "firstName": "",
    "lastName": ""
  },
  "fileId": "",
  "groupChatId": 0,
  "kikMemberId": 0,
  "stickerSetName": "",
  "sendStickerUrl": "",
  "createStickerSet": {
    "userId": 0,
    "name": "",
    "title": "",
    "createStickerFilename": "",
    "addStickerFilename": "",
    "emojisCreate": "",
    "emojisAdd": ""
  },
  "game": {
    "name": ""
  },
  "invoice": {
    "title": "",
    "desc": "",
    "payload": "",
    "token": "",
    "param": "",
    "currency": "",
    "prices": [
      "",
      ""
    ],
    "email": false,
    "phone": false,
    "address": false
  }
}

This is how it looks. Just fill it, put file into preferable location and provide with absolute path