Categorygithub.com/PurpleSec/swapper
repositorypackage
1.3.1
Repository: https://github.com/purplesec/swapper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Sticker Swapper Telegram Bot

Sticker Swapper Bot for Telegram

This is a bot for Telegram written in Golang, backed by a SQL database that is used for swapping or suggesting user stickers via names or parses.

Command Line Options

Sticker Swapper Telegram Bot
Purple Security (losynth.com/purple) 2021 - 2023

Usage:
  -h              Print this help menu.
  -f <file>       Configuration file path.
  -d              Dump the default configuration and exit.
  -c              Clear the database of ALL DATA before starting up.

Configuration Options

The default config can be dumped to Stdout using the '-d' command line flag.

{
    "db": {
        "host": "tcp(localhost:3306)",
        "user": "swapper_user",
        "timeout": 180000000000,
        "password": "password",
        "database": "swapper_db"
    },
    "log": {
        "file": "swapper.log",
        "level": 2
    },
    "telegram_key": ""
}

The "telegram_key" can also be a string list that can be used to manage multiple Telegram accounts.