chore: refacto
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
type TgUpdate struct {
|
||||
UpdateID int `json:"update_id"`
|
||||
Message *TgMessage `json:"message"`
|
||||
}
|
||||
|
||||
type TgMessage struct {
|
||||
MessageID int `json:"message_id"`
|
||||
Chat TgChat `json:"chat"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type TgChat struct {
|
||||
ID int64 `json:"id"`
|
||||
}
|
||||
|
||||
type TelegramLinkData struct {
|
||||
Username string `json:"username"`
|
||||
Role string `json:"role"` // "client" | "livreur" | "admin" | "cabine"
|
||||
}
|
||||
Reference in New Issue
Block a user