44 lines
1.5 KiB
Go
44 lines
1.5 KiB
Go
![]() |
package models
|
||
|
|
||
|
// BusinessConnection https://core.telegram.org/bots/api#businessconnection
|
||
|
type BusinessConnection struct {
|
||
|
ID string `json:"id"`
|
||
|
User User `json:"user"`
|
||
|
UserChatID int64 `json:"user_chat_id"`
|
||
|
Date int64 `json:"date"`
|
||
|
CanReply bool `json:"can_reply"`
|
||
|
IsEnabled bool `json:"is_enabled"`
|
||
|
}
|
||
|
|
||
|
// BusinessMessagesDeleted https://core.telegram.org/bots/api#businessmessagesdeleted
|
||
|
type BusinessMessagesDeleted struct {
|
||
|
BusinessConnectionID string `json:"business_connection_id"`
|
||
|
Chat Chat `json:"chat"`
|
||
|
MessageIDs []int `json:"message_ids"`
|
||
|
}
|
||
|
|
||
|
// BusinessIntro https://core.telegram.org/bots/api#businessintro
|
||
|
type BusinessIntro struct {
|
||
|
Title string `json:"title,omitempty"`
|
||
|
Message string `json:"message,omitempty"`
|
||
|
Sticker *Sticker `json:"sticker,omitempty"`
|
||
|
}
|
||
|
|
||
|
// BusinessLocation https://core.telegram.org/bots/api#businesslocation
|
||
|
type BusinessLocation struct {
|
||
|
Address string `json:"address"`
|
||
|
Location *Location `json:"location,omitempty"`
|
||
|
}
|
||
|
|
||
|
// BusinessOpeningHours https://core.telegram.org/bots/api#businessopeninghours
|
||
|
type BusinessOpeningHours struct {
|
||
|
TimeZoneName string `json:"time_zone_name"`
|
||
|
OpeningHours []BusinessOpeningHoursInterval `json:"opening_hours"`
|
||
|
}
|
||
|
|
||
|
// BusinessOpeningHoursInterval https://core.telegram.org/bots/api#businessopeninghoursinterval
|
||
|
type BusinessOpeningHoursInterval struct {
|
||
|
OpeningMinute int `json:"opening_minute"`
|
||
|
ClosingMinute int `json:"closing_minute"`
|
||
|
}
|