mirror of
https://github.com/tucnak/telebot
synced 2024-11-15 06:13:01 +00:00
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.")
|
|
}
|
|
}
|