L&D series: Create simple Telegram and Slack bot
Published in
3 min readJun 14, 2020
Learning and Development chapter 2.
Telegram
- Please say
hello
to @BotFather.
- Click or type
/newbot
.
Golang
Framework https://github.com/tucnak/telebot
- Run by
go run main.go
.
Ruby
Framework https://github.com/telegram-bot-rb/telegram-bot
- Run by
ruby main.rb
Bot result
Slack
- Go to https://api.slack.com/apps.
- Click
Create New App
.
- Click your bot.
- Turn ON the webhook setting.
- Click
Add New Webhook to Workspace
.
- Click
Allow
.
- Click
Copy
belowWebhook URL
. Or if you want to try, copy the curl and paste it in your terminal.
Golang
We’ll try using the service this time.
- Run by
go run main.go
.
Ruby
We’ll try using httparty this time.
- Run by
ruby main.rb
.
Bot Result
Many ways to create a bot. Which one do you prefer? :D — MperMperPisang