Move bot config to separate struct.
This commit is contained in:
parent
aa0cdf3719
commit
1b1af39b61
8 changed files with 353 additions and 286 deletions
|
@ -14,6 +14,8 @@ const (
|
|||
// APIEndpoint is the endpoint for all API methods,
|
||||
// with formatting for Sprintf.
|
||||
APIEndpoint = "https://api.telegram.org/bot%s/%s"
|
||||
// APITestEndpoint is the endpoint for Telegram test server,
|
||||
APITestEndpoint = "https://api.telegram.org/bot%s/test/%s"
|
||||
// FileEndpoint is the endpoint for downloading a file from Telegram.
|
||||
FileEndpoint = "https://api.telegram.org/file/bot%s/%s"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue