Skip to content

Commit

Permalink
MyChatMemberUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Jun 7, 2024
1 parent 99a73c0 commit 0131684
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ func getJson(url string, target interface{}, respjson *string) (err error) {
}
if respjson != nil {
*respjson = string(respBody)
log("getJson %s respjson:"+NL+"%s", url, *respjson)
}

return nil
Expand Down Expand Up @@ -971,10 +970,10 @@ func main() {
cmu := u.MyChatMemberUpdated
report := fmt.Sprintf(
"*MyChatMemberUpdated*"+NL+
"from: \\@%s id:%d"+NL+
"chat: id:%d type:%s title:%s"+NL+
"old member: \\@%s id:%d status:%s"+NL+
"new member: \\@%s id:%d status:%s"+NL+
"from: `@%s` id:`%d`"+NL+
"chat: id:`%d` type:`%s` title:`%s`"+NL+
"old member: `@%s` id:`%d` status:`%s`"+NL+
"new member: `@%s` id:`%d` status:`%s`"+NL+
"",
cmu.From.Username, cmu.From.Id,
cmu.Chat.Id, cmu.Chat.Type, cmu.Chat.Title,
Expand Down

0 comments on commit 0131684

Please sign in to comment.