User:IsBot & RestrictChatMember:UntilDate
Zaur Abdulgalimov abdulgalimov@gmail.com
Thu, 09 Nov 2017 18:41:22 +0300
M
bot.go
→
bot.go
@@ -739,6 +739,9 @@ }
if &config.CanAddWebPagePreviews != nil { v.Add("can_add_web_page_previews", strconv.FormatBool(*config.CanAddWebPagePreviews)) } + if config.UntilDate != 0 { + v.Add("until_date", strconv.FormatInt(config.UntilDate, 10)) + } bot.debugLog("restrictChatMember", v, nil)
M
types.go
→
types.go
@@ -56,6 +56,7 @@ FirstName string `json:"first_name"`
LastName string `json:"last_name"` // optional UserName string `json:"username"` // optional LanguageCode string `json:"language_code"` // optional + IsBot bool `json:"is_bot"` // optional } // String displays a simple text version of a user.