all repos — telegram-bot-api @ cd9a9741d0cfab359de3a9363b697721f41cc3d6

Golang bindings for the Telegram Bot API

Create own supergroup with test already created bot and give it admin rights
Lord-Protector savely@krasovsky.me
Sat, 05 Aug 2017 13:50:44 +0300
commit

cd9a9741d0cfab359de3a9363b697721f41cc3d6

parent

3a60d28d73265c48475c2cf9f99b0842a88f1090

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M bot_test.gobot_test.go

@@ -14,6 +14,7 @@

const ( TestToken = "153667468:AAHlSHlMqSt1f_uFmVRJbm5gntu2HI4WW8I" ChatID = 76918703 + SupergroupChatID = -1001120141283 ReplyToMessageID = 35 ExistingPhotoFileID = "AgADAgADw6cxG4zHKAkr42N7RwEN3IFShCoABHQwXEtVks4EH2wBAAEC" ExistingDocumentFileID = "BQADAgADOQADjMcoCcioX1GrDvp3Ag"

@@ -613,7 +614,7 @@

func TestPinChatMessage(t *testing.T) { bot, _ := getBot(t) - msg := tgbotapi.NewMessage(ChatID, "A test message from the test library in telegram-bot-api") + msg := tgbotapi.NewMessage(SupergroupChatID, "A test message from the test library in telegram-bot-api") msg.ParseMode = "markdown" message, _ := bot.Send(msg)

@@ -633,7 +634,7 @@

func TestUnpinChatMessage(t *testing.T) { bot, _ := getBot(t) - msg := tgbotapi.NewMessage(ChatID, "A test message from the test library in telegram-bot-api") + msg := tgbotapi.NewMessage(SupergroupChatID, "A test message from the test library in telegram-bot-api") msg.ParseMode = "markdown" message, _ := bot.Send(msg)