update channel name example
This commit is contained in:
parent
0789e72134
commit
5643dd7db7
@ -28,7 +28,7 @@ func main() {
|
|||||||
var client = v1.New("https://token.url", "cb8ccf05e38a47543ad8477d49bcba99be73bff503ea6")
|
var client = v1.New("https://token.url", "cb8ccf05e38a47543ad8477d49bcba99be73bff503ea6")
|
||||||
ch := Channel{
|
ch := Channel{
|
||||||
Type: "telegram",
|
Type: "telegram",
|
||||||
Name: "Telegram"
|
Name: "@my_shopping_bot"
|
||||||
Settings: ChannelSettings{
|
Settings: ChannelSettings{
|
||||||
SpamAllowed: false,
|
SpamAllowed: false,
|
||||||
Status: Status{
|
Status: Status{
|
||||||
|
@ -26,7 +26,7 @@ func New(url string, token string) *MgClient {
|
|||||||
//
|
//
|
||||||
// request := ActivateRequest{
|
// request := ActivateRequest{
|
||||||
// Type: "telegram",
|
// Type: "telegram",
|
||||||
// Name: "Telegram",
|
// Name: "@my_shopping_bot",
|
||||||
// Settings: ChannelSettings{
|
// Settings: ChannelSettings{
|
||||||
// SpamAllowed: false,
|
// SpamAllowed: false,
|
||||||
// Status: Status{
|
// Status: Status{
|
||||||
@ -78,7 +78,7 @@ func (c *MgClient) ActivateTransportChannel(request Channel) (ActivateResponse,
|
|||||||
// request := ActivateRequest{
|
// request := ActivateRequest{
|
||||||
// ID: 3053450384,
|
// ID: 3053450384,
|
||||||
// Type: "telegram",
|
// Type: "telegram",
|
||||||
// Name: "Telegram",
|
// Name: "@my_shopping_bot",
|
||||||
// Settings: ChannelSettings{
|
// Settings: ChannelSettings{
|
||||||
// SpamAllowed: false,
|
// SpamAllowed: false,
|
||||||
// Status: Status{
|
// Status: Status{
|
||||||
|
@ -24,7 +24,7 @@ func TestMgClient_ActivateTransportChannel(t *testing.T) {
|
|||||||
ch := Channel{
|
ch := Channel{
|
||||||
ID: channelId,
|
ID: channelId,
|
||||||
Type: "telegram",
|
Type: "telegram",
|
||||||
Name: "Telegram",
|
Name: "@my_shopping_bot",
|
||||||
Settings: ChannelSettings{
|
Settings: ChannelSettings{
|
||||||
SpamAllowed: false,
|
SpamAllowed: false,
|
||||||
Status: Status{
|
Status: Status{
|
||||||
@ -53,7 +53,7 @@ func TestMgClient_ActivateNewTransportChannel(t *testing.T) {
|
|||||||
c := client()
|
c := client()
|
||||||
ch := Channel{
|
ch := Channel{
|
||||||
Type: "telegram",
|
Type: "telegram",
|
||||||
Name: "Telegram",
|
Name: "@my_shopping_bot",
|
||||||
Settings: ChannelSettings{
|
Settings: ChannelSettings{
|
||||||
SpamAllowed: false,
|
SpamAllowed: false,
|
||||||
Status: Status{
|
Status: Status{
|
||||||
@ -94,7 +94,7 @@ func TestMgClient_UpdateTransportChannel(t *testing.T) {
|
|||||||
c := client()
|
c := client()
|
||||||
ch := Channel{
|
ch := Channel{
|
||||||
ID: channelId,
|
ID: channelId,
|
||||||
Name: "Somename",
|
Name: "@my_shopping_bot_2",
|
||||||
Settings: ChannelSettings{
|
Settings: ChannelSettings{
|
||||||
SpamAllowed: false,
|
SpamAllowed: false,
|
||||||
Status: Status{
|
Status: Status{
|
||||||
|
Loading…
Reference in New Issue
Block a user