2017-12-06 14:40:12 +00:00
|
|
|
# greed configuration file
|
|
|
|
|
2018-04-26 06:47:53 +00:00
|
|
|
# boolean parameters should be written in lowercase
|
|
|
|
|
2017-12-06 14:40:12 +00:00
|
|
|
# Config file parameters
|
|
|
|
[Config]
|
|
|
|
; Config file version. DO NOT EDIT THIS!
|
2020-02-05 01:12:57 +00:00
|
|
|
version = 14
|
2017-12-06 14:40:12 +00:00
|
|
|
; Set this to no when you are done editing the file
|
|
|
|
is_template = yes
|
2020-02-04 13:13:14 +00:00
|
|
|
; Language code for string file
|
|
|
|
language = it_IT
|
2017-12-06 14:40:12 +00:00
|
|
|
|
|
|
|
# Telegram bot parameters
|
|
|
|
[Telegram]
|
|
|
|
; Your bot token goes here. Get one from @BotFather!
|
2017-12-13 10:20:53 +00:00
|
|
|
token = 123456789:YOUR_TOKEN_GOES_HERE_______________
|
2018-05-03 07:24:04 +00:00
|
|
|
; Time in seconds before a conversation (thread) with no new messages expires
|
|
|
|
; A lower value reduces memory usage, but can be inconvenient for the users
|
2017-12-14 09:25:05 +00:00
|
|
|
conversation_timeout = 7200
|
2018-05-03 07:24:04 +00:00
|
|
|
; Time to wait before sending another update request if there are no messages
|
2017-12-17 15:49:46 +00:00
|
|
|
long_polling_timeout = 30
|
2018-05-03 07:24:04 +00:00
|
|
|
; Time in seconds before retrying a request if it times out
|
|
|
|
timed_out_pause = 1
|
|
|
|
; Time in seconds before retrying a request that returned an error
|
|
|
|
error_pause = 5
|
2017-12-17 15:49:46 +00:00
|
|
|
|
|
|
|
# Database parameters
|
|
|
|
[Database]
|
2018-05-03 07:24:04 +00:00
|
|
|
; The database engine you want to use.
|
|
|
|
; Refer to http://docs.sqlalchemy.org/en/latest/core/engines.html for the possible settings.
|
2019-10-21 15:44:29 +00:00
|
|
|
engine = sqlite:///database.sqlite
|
2017-12-26 17:15:30 +00:00
|
|
|
|
2018-01-10 10:29:02 +00:00
|
|
|
# General payment settings
|
2018-01-03 13:52:05 +00:00
|
|
|
[Payments]
|
2018-05-03 07:24:04 +00:00
|
|
|
; ISO currency code
|
2018-01-10 10:29:02 +00:00
|
|
|
currency = EUR
|
2018-05-03 07:24:04 +00:00
|
|
|
; Currency exp parameter. You can find that on https://core.telegram.org/bots/payments/currencies.json.
|
|
|
|
; It has a value of 2 in most currencies (EUR, USD, GBP...)
|
2018-01-10 10:29:02 +00:00
|
|
|
currency_exp = 2
|
|
|
|
|
|
|
|
# Credit card payment settings
|
|
|
|
[Credit Card]
|
2018-05-03 07:24:04 +00:00
|
|
|
; Provider token: get the token by linking the payment provider with @BotFather
|
2018-01-10 10:29:02 +00:00
|
|
|
credit_card_token = 123456789:YOUR_TOKEN_HERE_
|
2018-05-03 07:24:04 +00:00
|
|
|
; Minimum wallet payment accepted (in miniumum currency units, $1.00 = 100 units)
|
2018-01-29 10:46:01 +00:00
|
|
|
min_amount = 1000
|
2018-05-03 07:24:04 +00:00
|
|
|
; Maximum wallet payment accepted (in miniumum currency units, $1.00 = 100 units)
|
2018-01-29 10:46:01 +00:00
|
|
|
max_amount = 10000
|
2018-05-03 07:24:04 +00:00
|
|
|
; Make the user pay a extra fee when adding credit to the wallet with a credit card
|
|
|
|
; The formula for determining the total cost is:
|
|
|
|
; cost = added_funds + added_funds * fee_percentage / 100 + fee_fixed
|
|
|
|
; Set these values to 0 to disable the feature.
|
2018-01-15 09:16:04 +00:00
|
|
|
fee_percentage = 2.9
|
|
|
|
fee_fixed = 30
|
2018-05-03 07:24:04 +00:00
|
|
|
; "Shipping" information
|
|
|
|
; Telegram can ask for extra information when charging the user for a credit card transaction
|
|
|
|
; Set to yes the data you want to be required
|
|
|
|
; This data will be stored in the database
|
2018-01-10 10:29:02 +00:00
|
|
|
name_required = yes
|
|
|
|
email_required = yes
|
2018-04-12 08:21:11 +00:00
|
|
|
phone_required = yes
|
|
|
|
|
2018-04-26 06:47:53 +00:00
|
|
|
# Bot appearance settings
|
|
|
|
[Appearance]
|
2018-05-03 07:24:04 +00:00
|
|
|
; Display the full order information to the customers instead of the shortened version
|
|
|
|
; The full order information includes the order number and the timestamp of the order placement
|
2018-04-26 06:47:53 +00:00
|
|
|
full_order_info = no
|
|
|
|
|
2018-04-12 08:21:11 +00:00
|
|
|
# Exception reporting settings
|
|
|
|
[Error Reporting]
|
2018-05-03 07:24:04 +00:00
|
|
|
; Optional sentry token: get the token at https://sentry.io/ or ask @Steffo for one
|
|
|
|
; Needed to automatically report bugs found by the users in the code.
|
2018-11-21 14:05:38 +00:00
|
|
|
sentry_token = https://00000000000000000000000000000000:00000000000000000000000000000000@sentry.io/0000000
|