Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Возможность добавлять описание аттачей при их загрузке (Telegram) #66

Closed
daeeros opened this issue Nov 22, 2021 · 1 comment

Comments

@daeeros
Copy link
Contributor

daeeros commented Nov 22, 2021

При выводе изображения иногда нужно и написать кое-что, но телеграм отправляет это отдельным сообщением, было бы гораздо удобнее если бы при загрузке аттачей была бы возможность указывать их описание - caption

К примеру:

from kutana import Attachment

with open("assets/pizza.png", "rb") as f:
    image = Attachment.new(f.read(), caption="А вот и твоя пицца!")

Это было бы очень удобно :3

@michaelkryukov
Copy link
Member

michaelkryukov commented Apr 24, 2022

d611358#diff-0f6b22100d65f4ff88c780b3cf6fae6650364f82649f6d0b8d3dfa33e299e12dR11

Реализовал поддержку "title" для телеграмма. Вроде должно решить вопрос)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants