forked from mikeroneer/taigagram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
27 lines (22 loc) · 977 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Project: taigagram
* May 2016
* by Michael Rockenschaub
* http://www.mikerocode.com
*/
// telegram bot api settings
define("TELEGRAM_API_TOKEN", "change-my_api_token_got_from_bot_father");
define("TELEGRAM_WEBHOOK_URL", "change-https://www.example.com/hooks/telegram-hook.php");
// database settings
define("DB_SERVER", "change-database.example.com");
define("DB_USERNAME", "change-my_db_username");
define("DB_PASSWORD", "change-my_db_password");
define("DB_DATABASE", "change-my_database");
define("DB_TABLE", "change-my_db_table");
// url parameter name for identifying the correct group-chat
define("PARAM_IDENTIFICATION", "id");
// base of the taiga webhook url, id will be concatenated programmatically (use rewrite to shorten this url)
define("TAIGA_WEBHOOK_BASE_URL", "change-http://www.example.com/hooks/taiga-hook.php?" . PARAM_IDENTIFICATION . "=");
// your chat id where debug messages can be sent to
define("DEBUG_CHAT_ID", change-00000000);