-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
325 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters