Find Jobs
Hire Freelancers

chat bot for telegram

€8-30 EUR

Closed
Posted 8 months ago

€8-30 EUR

Paid on delivery
implement the following python code to make the chat bot for telegram working. Also, apply this code in a online IDE environment, giving clear instruction on how to change the code if needed, for a begginer person. python code: import telebot import time import datetime import requests import gspread def calculate_discount(value, discount_type): """ Calculates a 5%, 10%, or 7% discount on a value in euros. Args: value: The value in euros. discount_type: The discount type (5, 10, or 7). Returns: The discount value. """ if discount_type == 5: return value * 0.05 elif discount_type == 10: return value * 0.1 else: return value * 0.07 def find_euros_value(message): """ Finds the euros value in the received message. Args: mensagem: The received message. Returns: The euros value. """ text = [login to view URL]("promo", "") text = [login to view URL]() pos = [login to view URL]("€") if pos != -1: valor = text[:pos] else: valor = [login to view URL]("euros")[0] return valor def calculate_final_price(value, discount): """ Calculates the final price of the product after the discount. Args: valor: The original product value. discount: The discount value. Returns: The final product price. """ return value - discount def calculate_loyalty_points(value): """ Calculates the loyalty points based on the purchase value. Args: valor: The purchase value. Returns: The number of loyalty points. """ return int(value) def send_discount_message(message): """ Sends a message to the customer with the discount and asks for the product photo. Args: mensagem: The received message. """ valor = find_euros_value([login to view URL]) desconto = calculate_discount(valor, tipo_desconto) preco_final = calculate_final_price(valor, desconto) pontos_da_compra = calculate_loyalty_points(valor) mensagem_desconto = f""" Valor do produto: {valor}€ Valor do desconto: {desconto}€ Preço final: {preco_final}€ Pontos da compra: {pontos_da_compra} Obrigado pela preferência. """ bot.send_message([login to view URL], mensagem_desconto) def update_google_sheets_data(sheet, telefone, desconto, preco_final, pontos_da_compra): """ Updates the data of a customer in the Google Sheets sheet. Args: sheet: The Google Sheets sheet. telefone: The customer's phone number. desconto: The discount value. preco_final: The final product price. pontos_da_compra: The number of points accumulated in the purchase. """ # Adds the customer data to the Google Sheets sheet sheet.append_row([telefone, desconto, preco_final, pontos_da_compra]) # Updates the points accumulated column sheet.update_cell(telefone, 4, [login to view URL](telefone, 4).value + pontos_da_compra)
Project ID: 37186642

About the project

8 proposals
Remote project
Active 7 mos ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
8 freelancers are bidding on average €17 EUR for this job
User Avatar
Hello Joao! I hope you're well. I'm a senior Python developer with specializing in python app and web development. I've delivered more than 100 projects over time with 5* rating. Here are some of my skills necessary for this task. ➢ Python: Deep understanding of Python and libraries like Pandas, Numpy, Scipy, Plotly, scikit, re, poetry etc ➢ Frameworks: FastAPI, Flask, Django, Jinja and Mako ➢ Databases: MySQL, Redis, DynamoDB, Postgres, Oracle, MongoDB ➢ Async Communications: CQRS, Kafka, Redis, Celery, RabbitMQ, MQTT ➢ Source Code Management: Git, GitLab, Bit-bucket, SVN ➢ Project Management: Jira, Bugzilla, Trello & Asana ➢ Web Servers: Apache Tomcat, Apache Http, Nginx ➢ CI/CD: Jenkins, CircleCI, GoCD, ArgoCD ➢ Cloud Providers: AWS, GCP and Azure ➢ Containerisation: Docker, Kubernetes Best, Sonu
€30 EUR in 7 days
4.9 (54 reviews)
6.2
6.2
User Avatar
Hi there, I'm thrilled to discuss the project with you. Having discovered your quest for a skilled python developer well-versed in Bot development, You need chat bot for telegram I confidently step forward to take on the job. From your post description, it's evident that time and budget efficiency are paramount, and I assure you that I'm fully aligned with those requirements. My 3+ years as a full-stack python developer have equipped me with in-depth knowledge and proficiency in python development and customization. I take pride in delivering nothing short of perfection, and I guarantee a flawlessly executed and completed project. Additionally, I'm committed to providing ongoing support for any future edits or customizations you may require. Communication is the heart of successful collaborations, and I'm deeply invested in maintaining continuous connectivity with my clients. Whether it's ideas, feedback, or any information you seek, I'm available 24/7 to assist you. To kickstart the project, I eagerly await the clear and final requirements documentation. As soon as I receive it, Thank you for considering my application. I eagerly await your response and the chance to collaborate with you on this exciting journey. Best regards,
€8 EUR in 1 day
5.0 (1 review)
2.7
2.7
User Avatar
Hello! I am AMIR NADEEM, a skilled and dynamic professional with expertise in Lead Generation, Web Scraping, Python, and Data. With a passion for harnessing the power of data-driven strategies, I excel at generating high-quality leads, extracting valuable information from the web, and utilizing Python to develop innovative solutions. Web Scraping: Web scraping is my forte, and I have honed my skills in automating the extraction of essential data from websites. With expertise in various scraping tools and techniques, I efficiently gather and process relevant information from diverse online sources. Whether it's competitor analysis, market research, or content aggregation, I utilize web scraping to provide valuable data-driven insights. Python: Python is my programming language of choice, and I leverage its versatility to tackle a wide range of tasks. With proficiency in writing clean and efficient Python code, I develop solutions for data manipulation, analysis, and visualization. My expertise in Python allows me to create custom web scraping scripts, automate repetitive tasks, and implement data-driven applications.
€20 EUR in 1 day
5.0 (3 reviews)
2.6
2.6
User Avatar
Hello there, I checked your post with title "chat bot for telegram". I am familiar to python. I want to discuss your project in detail. Thank you.
€25 EUR in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
HELLO , I achieve your projects , could you please contact me , thanks in advance. i can share with you the result that are you looking for
€19 EUR in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi there, Greetings!!! I I’m Bhavana, I am Full-stack developer with 6+ years and core expertise in building modern, efficient, and reusable user interface components using Python and React.js. I understand your requirement & confident to deliver the desired output in Python. BR// Bhavana
€9 EUR in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello , I hope this message finds you well. i read the code and i am sure that i can help you beacuse i have a big experience in developing telegram bot in python. i work in many telegram bot projects, you can take a look on my portfolio. I am looking forward to working with you and if you have any further questions I would be happy to answer them.
€19 EUR in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I am an experienced Python developer. I understand that you need to create a Telegram Bot in Python using the telebot library. I have already created other bots using the same library. Even though I'm new to this site, I have a lot of experience in Python and creating Bots. I would love to work with you; you won't be disappointed! I will not waste your time and am committed to delivering the best bot. After the project, I am available if you have any doubts or encounter any problems with the code. I will be awaiting your reply.
€8 EUR in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of PORTUGAL
Porto, Portugal
5.0
2
Member since Feb 3, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.