This commit is contained in:
Bohdan Horbeshko 2022-02-08 15:25:58 -05:00
parent fe7346a530
commit ec49d5d412
7 changed files with 37 additions and 36 deletions

View file

@ -17,6 +17,7 @@ import (
const notEnoughArguments string = "Not enough arguments" const notEnoughArguments string = "Not enough arguments"
const telegramNotInitialized string = "Telegram connection is not initialized yet" const telegramNotInitialized string = "Telegram connection is not initialized yet"
const notOnline string = "Not online" const notOnline string = "Not online"
var permissionsAdmin = client.ChatMemberStatusAdministrator{ var permissionsAdmin = client.ChatMemberStatusAdministrator{
CanBeEdited: true, CanBeEdited: true,
CanChangeInfo: true, CanChangeInfo: true,
@ -144,7 +145,7 @@ func parseCommand(cmdline string) (string, []string) {
return bodyFields[0][1:], bodyFields[1:] return bodyFields[0][1:], bodyFields[1:]
} }
func rawCmdArguments(cmdline string, start uint8) (string) { func rawCmdArguments(cmdline string, start uint8) string {
var state uint var state uint
// /cmd ababa galamaga // /cmd ababa galamaga
// 01 2 3 45 // 01 2 3 45