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
  Python-based telegram spam bot-telegram-bot archer24 1 550 Feb-07-2025, 04:16 PM
Last Post: archer24
  Problem with importing python-telegram library into the project gandonio 1 3,027 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Telegram bot python help! wolfdevs 0 1,175 Sep-07-2022, 11:34 AM
Last Post: wolfdevs
  Problem With Database Calls and Load Timbo03 1 2,603 Nov-21-2021, 10:48 AM
Last Post: Timbo03
  Problem updating value in MySQL database dangermaus33 1 2,171 Nov-24-2020, 08:32 PM
Last Post: dangermaus33
  sqlite3 database problem Maryan 2 3,479 Oct-05-2020, 05:21 AM
Last Post: buran
  Bot coding telegram.ext Kumarkv 1 2,559 May-29-2020, 01:00 AM
Last Post: Kumarkv
  Question about telegram bot Romank 0 2,865 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 5,018 Nov-11-2017, 07:03 PM
Last Post: Larz60+
  Telegram code help AaronJonk 0 13,856 Oct-05-2017, 02:44 PM
Last Post: AaronJonk

Forum Jump:

User Panel Messages

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