added ability to disable third-party verification
This commit is contained in:
parent
4f0fa895c1
commit
36350f83dc
17 changed files with 211 additions and 69 deletions
|
|
@ -88,8 +88,14 @@ func (s *Service) HandlesBot(botUserID int64) bool {
|
|||
return false
|
||||
}
|
||||
switch botUserID {
|
||||
case domain.VerifierBotUserID:
|
||||
// @marksbot fronts THIRD-PARTY verification, which is hidden by default
|
||||
// (config.HideThirdPartyVerification) because the feature is not fully
|
||||
// finished -- while hidden, the bot doesn't exist as far as the message
|
||||
// pipeline is concerned.
|
||||
return !s.hideThirdPartyVerification
|
||||
case domain.BotFatherUserID, domain.StickersBotUserID, domain.ChatBotUserID,
|
||||
domain.VerifyBotUserID, domain.VerifierBotUserID:
|
||||
domain.VerifyBotUserID:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue