Python/Telebot/SQLite3 updating info [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
I have a telebot project where one of the function is sending message to user information from SQL table.
For example, user sends request with some data to Telegram bot. Then this data is sending to SQL table and create a new record. I see the new record and change, for example, status from 0 to 1. And when I updated data in user's record in SQL, I need the bot send to user a message that 'status' is changed.
Bot how can make 'check procedure' in Bot (to wait until SQL data is updated)?
I have no ideas. Please, share your thoughts!

Related

Discord Bot Post requests to Browser [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 months ago.
Improve this question
I would like to create a bot that sends a request (post) via a command /refresh with certain information so where I say /refresh test and it then sends a POST with certain information that is given for the time being.
Like this
client_id=CLIENT_ID_HERE&client_secret=CLIENT_SECRET_HERE&refresh_token=REFRESH_TOKEN_HERE&grant_type=refresh_token&redirect_uri=REDIRECT_URI_HERE
but don't know how.
So I reread this now many times. If I understood it right now, you just want to post something to, for example https://example.com/post
If so, then use aiohttp and create a client session and post it.
import aiohttp
#this in your command
async with aiohttp.ClientSession() as session:
await session.post(“https://example.org/post“, data={“foo”:”bar”})

Is there a way to log in to discord using a python script? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
My goal is to be able to loging to Discord using a script and then be able to send messages to channels. I need it to communicate with a music bot automatically but if I write a bot for discord other bot's will ignore it so thats not an option. Does anyone know how to do it?
Thanks!
I strongly advise you not to pursue this goal further, as it is a violation of the Discord Terms of Service and is illegal.Probably your account will be terminated by Discord as a result.
If you want to automate Discord Bots you can take it into consideration to code your own.

Discord target user ID [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I was wondering if there was a way to convert someones username to their ID requested upon a different user. Basically when a user requests for someone elses ID, they type in their name and it returns the specified users ID.
I'm totally new to python and stackoverflow, so any help is very helpful Thank You.
EDIT: Since I am creating individual user files for each user I use a users ID to name them, now I just need something that will convert someones username into their ID.
for this you can save the username in dict in python so basically you would create a dictionary with a username as key i.e.
desc={"Ali":123,"Mathew" :1234}
so print desc["Mathew"]; would print 1234 which is id of Mathew

Python Django. How to update count in message and notification badges in real-time [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
i'm currently working on app where users can send messages to each other and also receive some notifications from server. I'm using bootstrap's glyphicons and badges for indication that user have unread messages. Here is screenshot:
Problem is, i can update it only when user himself reload or load a new page.
What i want is to send real-time notification about new message or notification. So user don't have to reload page for getting notification about new message.
How can i achieve this? For development i'm using Django framework. Thanks in advance!

How can I create a client side database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I create a client side database to store information of users on client side. Does anybody know of any tutorials or pointers? Which is the recommended database to use? My client is in .js and uses Django framework.
What you are asking for is called Web Storage and is part of HTML5.
http://diveintohtml5.info/storage.html
http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html
However, many times when people SAY they need a client-side database, I ask them the details and it turns out that they don't really need client side storage at all, so proceed with caution.

Categories

Resources