• Stars
    star
    408
  • Rank 105,946 (Top 3 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Telegram ticketing/supporting system.

Welcome to Telegram Support Bot πŸ‘‹

Bot API Version NPM Version node js-google-style Documentation

TSB is a support bot for telegram bots, using the grammY Framework. It lets users create tickets which will be send to a staff group and can be answered by a reply.

πŸš€ Hosted solution: Get it here at botspace!

✨ Features

When a user sends a message to the support chat it will create a ticket which will be forwarded to the staff group. Any admin in the staff group may answer that ticket by just replying to it. Salutation is added automatically. Photos will be forwared too.

  • File forwarding from and to user
  • Database for handling open and closed tickets
  • Restrict users
  • Simple anti spam system
  • Send tickets to different staff groups
  • Private reply to user
  • Anonymize users
  • Auto reply based on keywords [beta]
  • Web chat [beta]]

πŸ“œ Commands

Currently the support chat offers these commands (staff commands):

  • /open - lists all open tickets (messages where noone has replied yet)
  • /reopen - reopen a closed ticket
  • /close - close a ticket manually (in case someone writes 'thank you')
  • /ban - ban a person from writing to your chat

User commands:

  • /start - tells the user how to use this bot
  • /help - an overview over the commands or some explanation for the user
  • /faq - shows the FAQ
  • /id - returns your telegram id and the group chat id (1234567 -1234567890)

πŸ“¦ Install

See the wiki for more detailed instructions.

mv config/config-sample.yaml config.yaml
docker-compose up -d

πŸ“ Upgrading from older versions

There are some breaking changes in the new versions. Please read the following instructions carefully when updating.

click here to show

Since version v4 this bot uses the grammY Telegram Bot Framework instead of the telegraf framework for various reasons.

Upgrading to v4.0.0

Make sure you add the new settings strings to your config.yaml file. Check the config-sample.yaml for all configs. Here are some of the new settings that you should add when migrating:

parse_mode: 'Markdown' # DO NOT CHANGE!
autoreply: (see config-sample.yaml for an example)

The config-sample.yaml settings now all use markdown instead of HTML so you have to adjust that. e.g. instead of
line break use \n instead. For a full list check the telegram bot API docs.

Upgrade to the new version. e.g. by pulling the main branch from GitHub or using the docker image bostrot/telegram-support-bot:4.0.0.

Start it.

The old database should work with the new version without changing anything.

Upgrading to v3.0.0

The latest version uses a new config file in YAML format which would break old versions.

In order to make old versions work with the master you would need to use the new config.yaml file instead of the config.ts file from before. The easiest would be if you copy the config-sample.yaml to config.yaml (both in the config folder) and edit the settings similar to your old config.ts file. There is no need to delete the database file so old tickets can be kept open.

You might also want to check out the wiki for more info.

Author

πŸ‘€ Eric Trenkel

πŸ‘₯ Contributors

Contributors

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

πŸ“ License

Copyright Β© 2023 Eric Trenkel.
This project is GPL-3.0 licensed.


Not found what you were looking for? Check out the Wiki

If you need help or need a hosted solution of this check out Botspace for a one-click setup.

More Repositories

1

wsl2-distro-manager

A GUI to quickly manage your WSL2 instances
Dart
1,782
star
2

PowerToysRunPluginWinget

Winget plugin for PowerToys Run
C#
239
star
3

DTubeViewer

Unofficial DTube Android & iOS App with Flutter
Dart
30
star
4

flutter_android_pip

Simple Flutter plugin for Android picture in picture mode.
Dart
14
star
5

flutter_plausible_analytics

Plausible Analytics for Flutter as a Dart package.
Dart
12
star
6

portfolio

Clean HTML5 & CSS portfolio site
HTML
12
star
7

flutter_repo_wiki

A Flutter docs and pub wiki with a notifier for new versions.
Dart
11
star
8

cloudflare-stream-uploader

A NodeJS Cloudflare Stream uploader.
JavaScript
9
star
9

steam_keys_activator

A JS script to activate multiple Steam keys automatically.
JavaScript
6
star
10

wsl-scripts

5
star
11

Touchless-Desktop-Controller

Control your computer with your hands without touching the mouse. Developed for the Intel RealSense F200 - Development: Frozen
C#
4
star
12

steembot

A simple "single threaded" request Steem Bot framework in NodeJS
JavaScript
3
star
13

chunked_downloader

Dart downloader with customizable chunk/buffer size
Dart
3
star
14

erics-container-repo

My docker containers in one place
Dockerfile
2
star
15

wahlapp

App for election information gathering about voters and their most important topics using Angular.
TypeScript
1
star
16

gitlab-runner

GitLab runner for ARM (Raspberry Pi 4) and Kubernetes with latest (12.2.0) gitlab-runner package.
Dockerfile
1
star
17

bostrot

1
star
18

who-crawler

Mirror of my repo at https://gitlab.com/botty-group/who-crawler.git
JavaScript
1
star
19

Notification-Plugin-for-phpDolphin

This plugin uses the browser API to send notifications to the user.
JavaScript
1
star
20

flutter_applovin

A flutter plugin for applovin
Java
1
star