ruitunion-org / feedback-bot

A free and open-source Telegram Bot that allows you to anonymously chat with multiple users in one Telegram Chat.
GNU General Public License v3.0
43 stars 2 forks source link

Optional user notification when closing a topic #3

Open alexios-oss opened 2 months ago

alexios-oss commented 2 months ago

Description

It would be good to have an optional notification message which is sent to the user after topic closure.

Proposed solution

A new nullable property should be introduced inAppOptions.

public class AppOptions
{
    public string? TopicClosedMessage { get; init; }

    // other properties
}

The bot should check if this property is set in AppOptions. If it is, send the message to the user when a topic is closed.