all repos — telegram-bot-api @ 99262cf76c9614211a15f726b0ce6a435a6f1286

Golang bindings for the Telegram Bot API

Remove deprecated methods.
Syfaro syfaro@foxpaw.in
Sun, 03 Jan 2016 22:48:52 -0600
commit

99262cf76c9614211a15f726b0ce6a435a6f1286

parent

67abf47ae87ad47fc22281d35c4da8df00522697

1 files changed, 1 insertions(+), 12 deletions(-)

jump to
M configs.goconfigs.go

@@ -3,7 +3,6 @@

import ( "encoding/json" "io" - "log" "net/url" "strconv" )

@@ -91,7 +90,6 @@

// BaseFile is a base type for all file config types. type BaseFile struct { BaseChat - FilePath string File interface{} FileID string UseExisting bool

@@ -135,16 +133,7 @@ }

// getFile returns the file. func (file BaseFile) getFile() interface{} { - var result interface{} - if file.FilePath == "" { - result = file.File - } else { - log.Println("FilePath is deprecated.") - log.Println("Please use BaseFile.File instead.") - result = file.FilePath - } - - return result + return file.File } // useExistingFile returns if the BaseFile has already been uploaded.