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.
Merge pull request tucnak#377 from omar-polo/v2
implements voice chat service messages
- Loading branch information
Showing
6 changed files
with
105 additions
and
46 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
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,17 @@ | ||
package telebot | ||
|
||
// 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"` | ||
} | ||
|
||
// VoiceChatParticipants represents a service message about new | ||
// members invited to a voice chat | ||
type VoiceChatParticipants struct { | ||
Users []User `json:"users"` | ||
} |