I have a telegram bot that sends a message to a channel. I want to implement the button attached to this post (inline keyboard button), but I also want to see the comment button. When you add an inline keyboard, it disappears.
Comments button:
Inline Keyboard Button (the text doesn't matter):
Code Example without keyboard (Golang):
message := tgbotapi.NewPhotoUpload(channel.ID, tgbotapi.FileBytes{
Name: "image-name",
Bytes: image,
})
message.Caption = "This is the caption"
message.ParseMode = "HTML"
response, err := bot.Send(message)
if err != nil {
fmt.Println(err)
}
Code Example with keyboard (Golang):
var keyboard = tgbotapi.NewInlineKeyboardMarkup(
tgbotapi.NewInlineKeyboardRow(
tgbotapi.NewInlineKeyboardButtonData("Test", "test"),
),
)
message := tgbotapi.NewPhotoUpload(channel.ID, tgbotapi.FileBytes{
Name: "image-name",
Bytes: image,
})
message.Caption = "This is the caption"
message.ParseMode = "HTML"
message.ReplyMarkup = keyboard
response, err := bot.Send(message)
if err != nil {
fmt.Println(err)
}
Is there any way to use these feautures together?

