P
P
patsanchique2020-09-09 05:46:43
Python
patsanchique, 2020-09-09 05:46:43

Is it possible to implement a copy to clipboard button in a telegram bot?

If yes, how can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lesha, 2020-09-09
@patsanchique

Impossible because you don't have access to the user's clipboard. I would prefer to use markdown or html in a message if I need to copy a specific piece of text (such as a confirmation code or ticket number).
https://stackoverflow.com/a/62692293/14015987

R
robprane, 2020-09-09
@robprane

You can use tags <code>inline fixed-width code</code>on text messages and file signatures, in fact, wherever parse_mode is supported. Most Telegram applications process such pieces of text in such a way that when you click on them, the text is copied to the clipboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question