fixed fee direction
This commit is contained in:
18
api/gateway/tgsettle/internal/service/treasury/bot/markup.go
Normal file
18
api/gateway/tgsettle/internal/service/treasury/bot/markup.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package bot
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func markdownCode(value string) string {
|
||||
value = strings.TrimSpace(value)
|
||||
if value == "" {
|
||||
value = "N/A"
|
||||
}
|
||||
value = strings.ReplaceAll(value, "`", "'")
|
||||
return "`" + value + "`"
|
||||
}
|
||||
|
||||
func markdownCommand(command Command) string {
|
||||
return markdownCode(command.Slash())
|
||||
}
|
||||
Reference in New Issue
Block a user