mirror of https://github.com/tucnak/telebot
telebot: rename voice chat to the video chat
parent
98378aadd1
commit
933fcacf4a
@ -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)
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
package telebot
|
||||
|
||||
import "time"
|
||||
|
||||
// VoiceChatStarted represents a service message about a voice chat
|
||||
// started in the chat.
|
||||
type VoiceChatStarted struct{}
|
||||
|
||||
// VoiceChatEnded represents a service message about a voice chat
|
||||
// ended in the chat.
|
||||
type VoiceChatEnded struct {
|
||||
Duration int `json:"duration"` // in seconds
|
||||
}
|
||||
|
||||
// VoiceChatParticipants represents a service message about new
|
||||
// members invited to a voice chat
|
||||
type VoiceChatParticipants struct {
|
||||
Users []User `json:"users"`
|
||||
}
|
||||
|
||||
// VoiceChatScheduled represents a service message about a voice chat scheduled in the chat.
|
||||
type VoiceChatScheduled struct {
|
||||
Unixtime int64 `json:"start_date"`
|
||||
}
|
||||
|
||||
// StartsAt returns the point when the voice chat is supposed to be started by a chat administrator.
|
||||
func (v *VoiceChatScheduled) StartsAt() time.Time {
|
||||
return time.Unix(v.Unixtime, 0)
|
||||
}
|
Loading…
Reference in New Issue