mirror of https://github.com/tucnak/telebot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
317 B
Go
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.")
|
|
}
|
|
}
|