Skip to content

Commit

Permalink
chat: add user_chat_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Nov 20, 2023
1 parent 7b08a8f commit 06bbf9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ type ChatJoinRequest struct {
// Sender is the user that sent the join request.
Sender *User `json:"from"`

// UserChatID is an ID of a private chat with the user
// who sent the join request. The bot can use this ID
// for 5 minutes to send messages until the join request
// is processed, assuming no other administrator contacted the user.
UserChatID int64 `json:"user_chat_id"`

// Unixtime, use ChatJoinRequest.Time() to get time.Time.
Unixtime int64 `json:"date"`

Expand Down

0 comments on commit 06bbf9e

Please sign in to comment.