You need to write a Telegram chatbot
1 .Cron every 5 minutes, cycle passes by users who approved=1 and have apiToken, call up data and perform a user balance check by a few parameters
And if 1 of 2 parameters appear true (see.parameters for checking - a and b), then send the notification to the user (the text is taken from the templates table).Send to the groupId,
If there is no group, then in the direct message by userId.Then add the balance history to the balance table for these users.1.1 The other crown starts in the morning (about 10 in London) and checks 1 parameter similarly (see.Parameters for verification - c.The 2ndThe user when pressing /start, if he is not approved and not rejected, then suggest to apply for approvement by pressing /request_approvement.If /request_approvement is launched, then write that the application is submitted and the administrator (admin=true) send the request for approvement.3 .The client () requests an access to this chatbot.Do you want to approve him/her?(Notice: you'll have to provide an api key for this user) and the Yes/Reject button.If Reject is sent - ask if he is confident what exactly wants to block (approved=2) the user and if Yes - then we set the corresponding field.If you want to arrest a user, then we ask apiToken and enter the client table for that user.These transactions must be available only to the administrator and at each request must be checked whether it is the administrator.That check that users who have been approved or rejected earlier, no longer change the value of the field approved by the administrators.When the administrator approved or rejected, the user arrives the message you were rejected/rejected.The Bd table:
clients(id:int, userId:string, groupId:string, approved:int(0-notapproved,1-approved,2-rejected), apiToken:string, admin:bool)
Balances: (id:int, userId:string, balance:string)
templates (id:int, name:string, text:text)
Parameters for verification by app (see section 1):
a) $prepaybalance changed, send -> "Your recent top up posted successfully on your account, your new prepay balance is: "$prepaybalance"
b) $prepaybalance is good, send -> "Your account is negative now, please top up your account today!"(Send once, the next time send when the balance will change again from positive to negative)
(c) We calculate the average $avg expenditure per day on account for the last 7 days (starting with out-of-the-day expenditure).And if yesterday costs were less than $4*avg then we send
Your daily spending goes below average.Please top up your account.
You need a Laravel/Lumen or Python.Set a bot on the Digital Ocean.
Client's review of cooperation with Dmytrii Marko
You need to write a Telegram chatbotThank you for the job! Everything was carefully done.
Freelancer's review of cooperation with Oleksandr Timchenko
You need to write a Telegram chatbotI would be glad to have it done again!
Current freelance projects in the category Web Programming
Parsing and classification of dataWe are looking for a developer to implement a system for collecting and structuring data from open sources. We have a database of small business owners in the USA, which contains the person's name, company name, address, and state. It is necessary to build a process for… Web Programming, Data Parsing ∙ 15 minutes back ∙ 12 proposals |
Updating WP plugins and themes on the site putevka.uzThere is a serious problem with plugins on the site putevka.uz, lack of licenses for paid ones, old versions with vulnerabilities: 1. Critically outdated or problematic (Needs urgent resolution) These plugins create the greatest risks for security, performance, or stability.… Content Management Systems, Web Programming ∙ 1 hour 34 minutes back ∙ 35 proposals |
Add pauses of 10-30 seconds between sending emails.Hello! I am looking for an experienced 1C / BAS (BAF) programmer to promptly resolve a technical issue with email distribution.Problem essence: We use the accounting program BAF (Business Automation Framework), version 2.0. Once a month, there is a need to send about 300 emails… Web Programming, Desktop Apps ∙ 1 hour 41 minutes back ∙ 4 proposals |
Need a strong Webflow developer for a B2B website (not a beginner)We are looking for a contractor to create a corporate website for a cybersecurity company. We specifically need a Webflow specialist with experience in B2B / corporate websites, who can build clean architecture, Client-First, components, CMS logic, responsive design, forms, SEO,… Web Programming ∙ 5 hours 50 minutes back ∙ 14 proposals |
Setting up Shopify system for offline storeWe are opening an offline hobby games store - selling board games, card games (Pokemon, Magic the Gathering, Lorcana, etc.). The store should operate on the Shopify platform (POS system, inventory management, product receipt, write-off, price adjustment). The list of items… Web Programming ∙ 7 hours 7 minutes back ∙ 26 proposals |