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

tag/mention a user #3049

Open
asarubbo opened this issue Sep 13, 2024 · 1 comment
Open

tag/mention a user #3049

asarubbo opened this issue Sep 13, 2024 · 1 comment

Comments

@asarubbo
Copy link

Not really an issue, just a question but I can't set a proper label.

I'm using python-telegram and with the following snippet I can reply to a message_id:

        params = {
            'chat_id': my_chat_id,
            'reply_to': {
                '@type': 'inputMessageReplyToMessage',
                    'message_id': my_message_id,
            },
            'input_message_content': {
                '@type': 'inputMessageText',
                'text': {
                    '@type': 'formattedText',
                    'text': my_message
                 },
            },
        }

        result_send_message = tg.call_method('sendMessage', params)

Can you provide an example about how tag/mention a user that did not have a tg username? I know its user_id

Thanks

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