diff --git a/src/main.go b/src/main.go index 1a1ee8d..347dd3e 100644 --- a/src/main.go +++ b/src/main.go @@ -15,7 +15,7 @@ type Options struct { } const Type = "telegram" -const MaxCharsCount = 4096 +const MaxCharsCount uint16 = 4096 var ( config *TransportConfig diff --git a/src/routing_test.go b/src/routing_test.go index 2504e8c..c7b1a41 100644 --- a/src/routing_test.go +++ b/src/routing_test.go @@ -66,10 +66,11 @@ func TestRouting_addBotHandler(t *testing.T) { Read: v1.ChannelFeatureNone, }, Text: v1.ChannelSettingsText{ - Creating: v1.ChannelFeatureBoth, - Editing: v1.ChannelFeatureBoth, - Quoting: v1.ChannelFeatureBoth, - Deleting: v1.ChannelFeatureReceive, + Creating: v1.ChannelFeatureBoth, + Editing: v1.ChannelFeatureBoth, + Quoting: v1.ChannelFeatureBoth, + Deleting: v1.ChannelFeatureReceive, + MaxCharsCount: MaxCharsCount, }, Product: v1.Product{ Creating: v1.ChannelFeatureReceive,