Skip Menu |

This queue is for tickets about the Telegram-Bot CPAN distribution.

Report information
The Basics
Id: 119270
Status: resolved
Priority: 0/
Queue: Telegram-Bot

People
Owner: Nobody in particular
Requestors: JMERELO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Using variables for TOKEN
There does not seem to be a way to define the token using a variable, via command line or environment variable. It's got to be defined as a constant, which is extremely inconvenient if you want to have source in a public repo. Is that so, or am I missing something?
From: JMERELO [...] cpan.org
On Fri Dec 16 11:14:23 2016, JMERELO wrote: Show quoted text
> There does not seem to be a way to define the token using a variable, > via command line or environment variable. It's got to be defined as a > constant, which is extremely inconvenient if you want to have source > in a public repo. Is that so, or am I missing something?
OK, you just have to set 'token' when you initialize the bot. No problem here.