Y
Y
Yura2020-12-10 19:03:12
Python
Yura, 2020-12-10 19:03:12

How to save and send a gif in telebot?

Tell me how you can make the bot accept the gif, save it and send it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Kiryanov, 2020-12-10
@hacker342

Where did you send it to the group? Or the user?
1. Through the database
2. Through this construction:
Example:

def getRegData(user, title, name):
    t = Template('$title *$name* \n Имя клиента: *$fullname* \n VIN-номер:*$vin* \n Телефон: *$phone* \n Комментарии: *$doit*')

    return t.substitute({
        'title': title,
        'name': name,
        'fullname': user.fullname,
        'vin': user.vin,
        'phone': user.phone,
        'doit': user.doit,
    })

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question