telebot/telebot_test.go
2020-04-05 21:32:38 +03:00

20 lines
317 B
Go

package telebot
import (
"testing"
)
func TestFile(t *testing.T) {
file := FromDisk("telebot.go")
if file.InCloud() {
t.Fatal("Newly created file can't exist on Telegram servers!")
}
file.FileID = "magic"
if file.FileLocal != "telebot.go" {
t.Fatal("File doesn't preserve its original filename.")
}
}