-
-
Notifications
You must be signed in to change notification settings - Fork 4
TGConnectFromEnv
__SyS__ edited this page Jan 21, 2019
·
3 revisions
-
TGBot:TGConnectFromEnv(const variable[])
-
Parameters
-
const variable[]
- environment variable name as string literal
-
-
Returns
- if successfully connected an integer with tag
TGBot
representing index of bot instance in plugin memory - if failed INVALID_BOT_ID
- if successfully connected an integer with tag
-
Example
new TGBot:bot = TGConnectFromEnv("SAMP_TG_BOT");
-