Skip to content

MaiLinhGroup/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 'Chet Bot' 🔫😎 Build Status

Libraries

This application is using following 3rd parties

  • tgbotapi for interacting with the Telegram Bot API

Dependency Management Tool

  • dep : Dependency management for Go

Prerequisites

Telegram Bot

To interact with the Telegram Bot API, you first need to create a Bot to get an authorization token. More information and the instruction on how to create a Telegram Bot can be found here.

Passwords and Authentification

This application uses environment variables heavily to set or retrieve sensible informations like keys, token, password etc. for authentification. You can set them on the fly directly in the terminal or via a bash script like this:

#!/bin/bash

CHATID="1234"
KEY="abcd"

Of course in both cases it's only available locally. Here are the required environment variables used by the application:

  • TOKEN : authorization token provided by the Telegram Bot API