paybot_task_add_chat: add the current chat to the payment check task.paybot_task_info: show payment check task information.paybot_task_stop: stop payment check task.paybot_task_start PERIOD_HOURS: start payment check task with the specified period.paybot_remove_payment: remove the chat members whose payment has expired (can be run only in group).If less than 1 or greater than 31, it'll print "within few days". LAST_DAY (optional): last day to complete the payment before being removed (only for printing the message).paybot_check_payment : show the list of chat members whose payment is expiring in the specified number of days (can be run only in group).DAYS_LEFT (optional): number of days within which the payment expires.paybot_email_payment : send a reminder email to chat members whose payment is expiring in the specified number of days.invalid dates, duplicated users) and show them paybot_check_data: check payments data for errors (e.g.paybot_is_check_on_join: show if payment check when a new member joins is enabled.paybot_set_check_on_join true/false: enable/disable payment check when a new member joins.paybot_remove_username: remove all the chat members without a username (can be run only in group).If less than 1, it'll print "as soon as possible". Hours are automatically converted to days if greater than 47. HOURS_LEFT (optional): hours left to set the username before being removed (only for printing the message).paybot_check_username : show the list of chat members without a username (can be run only in group).paybot_invite_link: generate a new invite link (can be run only in group).paybot_users_list: show the users list (can be run only in group).paybot_chat_info: show the chat information (can be run only in group).paybot_auth_users: show the list of authorized users that can use the bot.paybot_is_test_mode: show if test mode is enabled.paybot_set_test_mode true/false: enable/disable test mode.Valid only if log_file_use_rotating is false. True to append to log file, false to start from a new file each time. Valid only if log_file_use_rotating is true. ![]() When reached, a new log file is created up to log_file_backup_cnt. True for using a rotating log file, false otherwise If false, all the next fields will be skipped. True to enable logging to file, false otherwise (default: false). True to enable logging to console, false otherwise (default: true) Log level, same of python logging ( DEBUG, INFO, WARNING, ERROR, CRITICAL). If false, all the next fields will be skipped.įile containing email alternate body (text) Table column (letter) containing the payment expiration date (default: C, maximum: Z)ĭate format in payments data (default: %d/%m/%Y)Ĭonfiguration for email that reminds users to payĮmail enable flag (default: false). The user can be a username or a user ID (depending on the payment_use_user_id flag). Table column (letter) containing the user (default: B, maximum: Z). Table column (letter) containing the email used for paying (default: A, maximum: Z) If true, payment_user_col will be considered as a user ID (number), otherwise it'll be considered as a username Path where Google OAuth2 token file will be saved, loaded only if payment_type is GOOGLE_SHEET and payment_google_cred_type is OAUTH2 Name of the json credentials file for OAuth2 or service account (default: credentials.json), loaded only if payment_type is GOOGLE_SHEET ID of the Google Sheet used for payment data, loaded only if payment_type is GOOGLE_SHEETĬredentials type: OAUTH2 for OAuth2 flow or SERVICE_ACCOUNT for service account (default: OAUTH2), loaded only if payment_type is GOOGLE_SHEET ![]() ![]() Name of the Excel file used for payment data, loaded only if payment_type is EXCEL_FILE Input for payment data: EXCEL_FILE for using xls/xlsx file, GOOGLE_SHEET for using a Google Sheet ![]() Telegram username for getting support or send payments receipts (default: empty)įlag to check the payment of new members as soon as they join the group (default: true)įlag to check for duplicated emails in payment data (default: true) List of Telegram usernames that are authorized to use the bot, comma separatedĮmail for getting support or send payments receipts (default: empty) Language file in XML format (default: English) True to activate test mode false otherwise The list of all possible fields that can be set is shown below. ConfigurationĪn example of configuration file is provided in the app/conf folder. Of course, the app folder can be moved elsewhere if needed.
0 Comments
Leave a Reply. |