forked from tucnak/telebot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
telebot: rename voice chat to the video chat
- Loading branch information
Showing
6 changed files
with
56 additions
and
56 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package telebot | ||
|
||
import "time" | ||
|
||
// VideoChatStarted represents a service message about a video chat | ||
// started in the chat. | ||
type VideoChatStarted struct{} | ||
|
||
// VideoChatEnded represents a service message about a video chat | ||
// ended in the chat. | ||
type VideoChatEnded struct { | ||
Duration int `json:"duration"` // in seconds | ||
} | ||
|
||
// VideoChatParticipants represents a service message about new | ||
// members invited to a video chat | ||
type VideoChatParticipants struct { | ||
Users []User `json:"users"` | ||
} | ||
|
||
// VideoChatScheduled represents a service message about a video chat scheduled in the chat. | ||
type VideoChatScheduled struct { | ||
Unixtime int64 `json:"start_date"` | ||
} | ||
|
||
// StartsAt returns the point when the video chat is supposed to be started by a chat administrator. | ||
func (v *VideoChatScheduled) StartsAt() time.Time { | ||
return time.Unix(v.Unixtime, 0) | ||
} |