Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (36 loc) · 724 Bytes

README.md

File metadata and controls

45 lines (36 loc) · 724 Bytes

telegram-mail-bot

Setup

Compile:

git clone https://github.com/WAAutoMaton/telegram-mail-bot.git
cd telegram-mail-bot
go mod tidy
go build ./

Configure:

mkdir config
touch config/config.json

Edit the config.json, for example:

{
  "token": "<Your bot token> : string",
  "imapserver": "imap.example.com:993",
  "smtpserver": "smtp.example.com:589",
  "smtphost": "smtp.example.com",
  "username": "user@example.com",
  "password": "Your Mail's Password",
  "uid": "<Your telegram digital ID> : int"
}

(Optional) If you want to use proxy:

export http_proxy="Your proxy"

Finally

./telegram-mail-bot

Usage

Use /help to get more information.