Change visibility of UpdatesChannel, closes #76
This commit is contained in:
parent
99170e2de4
commit
3293f3ad84
3 changed files with 8 additions and 9 deletions
8
types.go
8
types.go
|
@ -37,11 +37,11 @@ type Update struct {
|
|||
CallbackQuery *CallbackQuery `json:"callback_query"`
|
||||
}
|
||||
|
||||
//updatesChannel is the channel for getting updates.
|
||||
type updatesChannel <-chan Update
|
||||
// UpdatesChannel is the channel for getting updates.
|
||||
type UpdatesChannel <-chan Update
|
||||
|
||||
//Clear discards all the actual incoming updates
|
||||
func (ch updatesChannel) Clear() {
|
||||
// Clear discards all unprocessed incoming updates.
|
||||
func (ch UpdatesChannel) Clear() {
|
||||
for len(ch) != 0 {
|
||||
<-ch
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue