Skip to content

Commit 06bbf9e

Browse files
committed
chat: add user_chat_id field
1 parent 7b08a8f commit 06bbf9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chat.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ type ChatJoinRequest struct {
190190
// Sender is the user that sent the join request.
191191
Sender *User `json:"from"`
192192

193+
// UserChatID is an ID of a private chat with the user
194+
// who sent the join request. The bot can use this ID
195+
// for 5 minutes to send messages until the join request
196+
// is processed, assuming no other administrator contacted the user.
197+
UserChatID int64 `json:"user_chat_id"`
198+
193199
// Unixtime, use ChatJoinRequest.Time() to get time.Time.
194200
Unixtime int64 `json:"date"`
195201

0 commit comments

Comments
 (0)