mirror of
https://github.com/tucnak/telebot
synced 2024-11-05 06:00:58 +00:00
chat: add user_chat_id field
This commit is contained in:
parent
7b08a8f939
commit
06bbf9e69f
6
chat.go
6
chat.go
@ -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"`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user