Jump to content
UBot Underground

Element offset question


Recommended Posts

Hi guys and girls,

 

In my current bot I am scraping a message that the user has sent. The problem is I want to scrape the newest message they sent and each conversation is different because some send one message, some send dozens..

 

So is there a way to obtain the total offsets for that particular element?

 

So.. If userA has just sent three mesages, I will scrape the element containing the message, with an offset of 3 to get the latest message, etc

       If userB has just sent 5 messages, I will scrape the element containing the message, with an offset this time of 5, to get the latest message.

 

Is this possible? It must be.

 

Thanks in advance for any help.

 

 

Link to post
Share on other sites

Hey thanks for your help and the reminder to start at 0. My question is though, how can I determine how many elements there are at that particular time and then chose the highest number? When we make our bots ubot studio will tell us how many element offsets there are for a particular element but how can we determine this within the bot itself?

 

Thanks ;0)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...