File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,6 @@ func TestUserStringWithUserName(t *testing.T) {
2222 }
2323}
2424
25- func TestMessageIsGroup (t * testing.T ) {
26- from := tgbotapi.User {ID : 0 }
27- chat := tgbotapi.Chat {ID : 10 }
28- message := tgbotapi.Message {From : from , Chat : chat }
29-
30- if message .IsGroup () != true {
31- t .Fail ()
32- }
33- }
34-
3525func TestMessageTime (t * testing.T ) {
3626 message := tgbotapi.Message {Date : 0 }
3727
@@ -65,6 +55,14 @@ func TestChatIsChannel(t *testing.T) {
6555 }
6656}
6757
58+ func TestChatIsSuperGroup (t * testing.T ) {
59+ chat := tgbotapi.Chat {ID : 10 , Type : "supergroup" }
60+
61+ if ! chat .IsSuperGroup () {
62+ t .Fail ()
63+ }
64+ }
65+
6866func TestFileLink (t * testing.T ) {
6967 file := tgbotapi.File {FilePath : "test/test.txt" }
7068
You can’t perform that action at this time.
0 commit comments