Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

chatbot-workshop/kotlin-telegram-hello

Repository files navigation

Hello Bot

Build Status gitmoji

A very simple bot example for Telegram written in Kotlin.

Copyright © 2018 Marcus Fihlon

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

See the LICENSE file for details.

Prior Knowledge

  1. You should be familiar with the basics of the Kotlin programming language.

  2. You should be able to control your development environment.

  3. You must have the messenger Telegram installed and registered as a user.

Preparation

  1. Go to https://web.telegram.org and login using your phone number.

  2. Start a chat with the @BotFather and send him a /newbot message.

  3. Answer the questions of the @BotFather and write down the username and token of your new bot.

  4. Clone this repository: git clone https://github.com/chatbot-workshop/kotlin-telegram-hello.git

Configuration

Open the file src/main/resources/bot.conf and enter the username and the token of your bot in the corresponding lines.

Running

Run the bot within your IDE or use Gradle at the command line: ./gradlew run

Testing

  1. Go to https://web.telegram.org and login using your phone number.

  2. Start a chat with your bot and send him a message.

  3. You should receive a message saying Hello, your name with your name.

Slack Team

For the participants of the workshop a slack team is available to answer questions regarding the preparations and to share additional information during the workshop. It is recommended to become a member there: https://bit.ly/chatbot-workshop-zurich

About

A simple bot example to post a message to Telegram written in Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages