summaryrefslogtreecommitdiffstats
path: root/internal/models/telegram.go
blob: 8afbdcd4b7d8e5536538f128e85e5eb31d4bd262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package models

type TelegramPhoneResponse struct {
	Identifier  string   `json:"identifier"`
	TelegramID  string   `json:"telegram_id,omitempty"`
	PhoneNumber string   `json:"phone_number,omitempty"`
	Contacts    []string `json:"contacts,omitempty"`
	Groups      []string `json:"groups,omitempty"`
	Credits     struct {
		Remaining int  `json:"remaining"`
		Unlimited bool `json:"unlimited"`
	} `json:"credits"`
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
}