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-05-02 23:01:44 +00:00
|
|
|
version = 18
|
2017-12-06 14:40:12 +00:00
|
|
|
; Set this to no when you are done editing the file
|
|
|
|
is_template = yes
|
2020-05-03 09:41:12 +00:00
|
|
|
|
|
|
|
# Language parameters
|
|
|
|
[Language]
|
2020-02-05 02:23:13 +00:00
|
|
|
; Available languages:
|
2020-05-03 09:41:12 +00:00
|
|
|
; it - Italian, by https://github.com/Steffo99
|
|
|
|
; en - English, by https://github.com/DarrenWestwood
|
2020-05-02 23:01:44 +00:00
|
|
|
; uk - Ukrainian, by https://github.com/pzhuk
|
|
|
|
; ru - Russian, by https://github.com/pzhuk
|
2020-05-03 09:41:12 +00:00
|
|
|
; The lanugages that messages can be displayed in
|
|
|
|
enabled_languages = it | en | uk | ru
|
|
|
|
; The default language to be set for users whose language cannot be autodetected or whose language is not enabled
|
|
|
|
default_language = it
|
|
|
|
; The language to fallback to if a string is missing in a specific language
|
|
|
|
fallback_language = en
|
2017-12-06 14:40:12 +00:00
|
|
|
|
|
|
|
# Telegram bot parameters
|
|
|
|
[Telegram]
|
2020-04-07 21:52:17 +00:00
|
|
|
; Your bot token goes here. Get one from https://t.me/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
|
2020-04-04 21:43:41 +00:00
|
|
|
; Currency symbol which is show to the client users when displaying prices and transaction values
|
|
|
|
; If not defined here, default language specific currency symbol from strings would be used
|
2020-04-28 23:06:56 +00:00
|
|
|
currency_symbol = €
|
2018-01-10 10:29:02 +00:00
|
|
|
|
|
|
|
# Credit card payment settings
|
|
|
|
[Credit Card]
|
2020-04-07 21:52:17 +00:00
|
|
|
; Telegram Payments provider token obtainable at https://t.me/BotFather in the bot's Payments menu
|
|
|
|
; If empty, credit card payments are disabled.
|
|
|
|
# credit_card_token =
|
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
|
2020-04-07 00:02:07 +00:00
|
|
|
; The preset selections that can be made when adding credit to the wallet with a credit card
|
|
|
|
; Presets are pipe-separated |, and should never be outside the bounds provided by the min_amount and max_amount options
|
|
|
|
payment_presets = 10.00 | 25.00 | 50.00 | 100.00
|
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
|
2020-04-04 20:37:03 +00:00
|
|
|
; Allow balance refill during the order checkout in case of unsufficient balance
|
|
|
|
refill_on_checkout = yes
|
2018-04-26 06:47:53 +00:00
|
|
|
|
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
|
2020-03-30 23:52:10 +00:00
|
|
|
|
|
|
|
# Logging settings
|
|
|
|
[Logging]
|
|
|
|
; The output format for the messages printed to the console
|
|
|
|
; See https://docs.python.org/3/library/logging.html#logrecord-attributes for information about the {}-attributes
|
|
|
|
format = {asctime} | {threadName} | {name} | {message}
|
|
|
|
; Logging level: ignore all log entries with a level lower than the specified one
|
|
|
|
; Valid options are FATAL, ERROR, WARNING, INFO, and DEBUG
|
|
|
|
level = INFO
|