1

I wrote a Pywikibot script that adds a message to a user’s talk page if some conditions are detected. So far so good, but when my bot leaves the message, the user is not notified, which kind of defeats the purpose. The bot account operates with the bot flag.

I tried adding a notification in the message, as in Hey [[User:Someone|Someone]], but this does not trigger a notification either.

2
  • 1
    If you are using Page.save method, it has a bot parameter, try setting it to False.
    – AXO
    Commented Jan 12 at 17:19
  • 1
    The bot parameter makes no difference, but your suggestion did point me in the right direction: I needed to set the minor parameter to False.
    – Huñvreüs
    Commented Jan 12 at 17:48

1 Answer 1

1

Thanks to @axo, I found the solution: in order for the user to be notified, the edit that adds the message to the user talk page must not be minor, so:

user_talk_page.save('Hey there', minor=False)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.