Initial commit
Build & Push / build (push) Canceled after 0s

This commit is contained in:
2026-08-05 19:31:35 +03:00
commit a33fa24e99
272 changed files with 40566 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
package echotron
import (
"reflect"
"testing"
)
var (
menuBtn = MenuButton{
Type: MenuButtonTypeCommands,
}
)
func TestSetChatMenuButton(t *testing.T) {
_, err := api.SetChatMenuButton(
&SetChatMenuButtonOptions{
MenuButton: menuBtn,
},
)
if err != nil {
t.Fatal(err)
}
}
func TestGetChatMenuButton(t *testing.T) {
res, err := api.GetChatMenuButton(nil)
if err != nil {
t.Fatal(err)
}
if !reflect.DeepEqual(*res.Result, menuBtn) {
t.Logf("expected menu button: %+v", menuBtn)
t.Logf("got menu button: %+v", res.Result)
t.Fatal("error: menu buttons mismatch")
}
}