Change visibility of UpdatesChannel, closes #76

This commit is contained in:
Syfaro 2017-01-26 11:43:28 -06:00
parent 99170e2de4
commit 3293f3ad84
3 changed files with 8 additions and 9 deletions

View file

@ -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
}