Python Forum
Telegram bot - Problem with database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Telegram bot - Problem with database
#1
Hi everybody when i do...
cursor.execute('UPDATE Utenti SET Api_Key = ? WHERE Id = ?;', (Api_Key, chat_id))
cursor.execute('SELECT * FROM Utenti WHERE Id = ' + str(chat_id))
...i haven't problem but if i see inside the db the modify isn't present.. what can I do to solve it?
Reply
#2
connection.commit() perhaps?
NoNameoN likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with importing python-telegram library into the project gandonio 1 1,563 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Telegram bot python help! wolfdevs 0 770 Sep-07-2022, 11:34 AM
Last Post: wolfdevs
  Problem With Database Calls and Load Timbo03 1 2,123 Nov-21-2021, 10:48 AM
Last Post: Timbo03
  Problem updating value in MySQL database dangermaus33 1 1,624 Nov-24-2020, 08:32 PM
Last Post: dangermaus33
  sqlite3 database problem Maryan 2 2,471 Oct-05-2020, 05:21 AM
Last Post: buran
  Bot coding telegram.ext Kumarkv 1 1,866 May-29-2020, 01:00 AM
Last Post: Kumarkv
  Question about telegram bot Romank 0 2,243 Mar-29-2018, 09:36 PM
Last Post: Romank
  Problem with updata the data into the database as it went into the wrong rows chris0147 5 3,790 Nov-11-2017, 07:03 PM
Last Post: Larz60+
  Telegram code help AaronJonk 0 9,499 Oct-05-2017, 02:44 PM
Last Post: AaronJonk
  problem with select and update the data into the database chris0147 1 3,176 Aug-18-2017, 09:38 PM
Last Post: chris0147

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020