feat: sync Bot API gateway support
This commit is contained in:
parent
9a501f900a
commit
4c0cc2b7a7
44 changed files with 4609 additions and 49 deletions
|
|
@ -37,6 +37,12 @@ func (s *captureUpdates) CurrentState(_ context.Context, userID int64) (domain.U
|
|||
return s.state, nil
|
||||
}
|
||||
|
||||
func (s *captureUpdates) ConfirmedState(_ context.Context, authKeyID [8]byte, userID int64) (domain.UpdateState, bool, error) {
|
||||
s.authKeyID = authKeyID
|
||||
s.userID = userID
|
||||
return s.state, s.state.Pts != 0 || s.state.Date != 0, nil
|
||||
}
|
||||
|
||||
func (s *captureUpdates) AcknowledgeCurrentState(_ context.Context, authKeyID [8]byte, userID int64) (domain.UpdateState, error) {
|
||||
s.authKeyID = authKeyID
|
||||
s.userID = userID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue