From 35db168bd0c52870da4ed152436bb92368db5a9a Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 17 Aug 2018 15:36:03 +0300 Subject: [PATCH] cleanup available values --- v1/client.go | 2 +- v1/client_test.go | 2 +- v1/types.go | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/v1/client.go b/v1/client.go index f64cef0..d6c85c3 100644 --- a/v1/client.go +++ b/v1/client.go @@ -84,7 +84,7 @@ func (c *MgClient) ActivateTransportChannel(request Channel) (ActivateResponse, // "message_read", // }, // Settings: ChannelSettings{ -// ReceiveMessageMode: MsgModeTimeLimited, +// ReceiveMessageMode: MsgModeNever, // SpamAllowed: false, // Features: ChannelFeatures{ // StatusDelivered: ChannelFeatureNone, diff --git a/v1/client_test.go b/v1/client_test.go index b4248af..e0d700e 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -61,7 +61,7 @@ func TestMgClient_ActivateNewTransportChannel(t *testing.T) { "message_read", }, Settings: ChannelSettings{ - ReceiveMessageMode: MsgModeTimeLimited, + ReceiveMessageMode: MsgModeNever, SpamAllowed: false, Features: ChannelFeatures{ StatusDelivered: ChannelFeatureNone, diff --git a/v1/types.go b/v1/types.go index 5a5982f..8ad2b5d 100644 --- a/v1/types.go +++ b/v1/types.go @@ -12,7 +12,6 @@ const ( ChannelFeatureBoth string = "both" MsgModeNever string = "never" - MsgModeTimeLimited string = "time-limited" MsgModeAlways string = "always" )