Sync telesrv b96f2dd (feat(bot): complete keyboards callbacks and durable delivery). Skipped private docs and preserved public README files per sync rules; normalized the appearance seed log label for public naming.
21 lines
690 B
Go
21 lines
690 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
// BotAPIWebhook is durable delivery configuration and observable retry state.
|
|
// The token secret is never stored here: authentication remains owned by BotProfile.
|
|
type BotAPIWebhook struct {
|
|
BotUserID int64
|
|
URL string
|
|
SecretToken string
|
|
MaxConnections int
|
|
AllowedUpdates []BotAPIUpdateKind
|
|
// AllowedUpdatesSet distinguishes an explicitly supplied (possibly empty)
|
|
// setWebhook parameter from omission, which must preserve the previous
|
|
// getUpdates/setWebhook policy atomically at the store boundary.
|
|
AllowedUpdatesSet bool
|
|
FailureCount int
|
|
LastErrorDate int
|
|
LastErrorMessage string
|
|
NextAttemptAt time.Time
|
|
}
|