lang

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package lang manages language-specific messages for a Telegram chatbot. It provides localization support for messages sent by the bot to users.

This package uses the golang.org/x/text/message package to manage and format localized messages.

Index

Constants

View Source
const (
	MsgNotAllowed          = "" /* 161-byte string literal not displayed */
	MsgUnexpectedError     = "" /* 160-byte string literal not displayed */
	MsgNotImplemented      = "Unfortunately, the feature has not been implemented yet."
	MsgNotSupported        = "This type of message is not supported."
	MsgCommandNotSupported = "This command is not supported."
	MsgDone                = "Done."
	MsgStats               = "*Cost statistics*```\nLast message: %s%.2f\nToday       : %s%.2f\nThis month  : %s%.2f\nAll-time    : %s%.2f```"
	MsgGreeting            = "*Welcome to the %s chatbot!*\n\nSend me a message to start a conversation or choose one of the available commands:\n\n"
	MsgSupport             = "For support inquiries, please contact %s."
	MsgCommandHelp         = "Show the help message."
	MsgCommandStats        = "Get usage statistics."
	// MsgCommandResend       = "Resend the last message."
	MsgCommandRestart = "Restart the conversation. Optionally, pass general instructions (for example, /restart you are a helpful assistant)."
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL