-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.go
19 lines (18 loc) · 895 Bytes
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package gtl
// Options defines configuration settings for customizing the appearance of logs.
type Options struct {
// The Telegram chat ID where log messages will be sent.
ChatID string
// The thread (message thread) ID within the chat for sending log messages. Needs for forum-style chats.
ThreadID int
// The formatting mode for messages (e.g., "Markdown", "HTML", "MarkdownV2"). To disable, an empty string.
ParseMode string
// If true, messages will be sent silently without triggering notifications in the chat.
DisableNotification bool
// If true, the log message will be wrapped in a code block (e.g., using Markdown or HTML preformatted tags).
WrapAsCode bool
// Specifies the language extension for syntax highlighting in code blocks, if supported.
CodeExtension string
// If true, appends timestamp metadata to log messages for better traceability.
TimeMetadata bool
}