def delete_message(self, chat_id, message_id):
"""
Use this method to delete message. Returns True on success.
:param chat_id: in which chat to delete
:param message_id: which message to delete
:return: API reply.
"""
return apihelper.delete_message(self.token, chat_id, message_id)
Или API телеграм:
import requests
s = requests.Session()
s.get('https://api.telegram.org/bot{0}/deletemessage?message_id={1}&chat_id={2}'.format(token, message.message_id, message.chat.id))
DECLARE
EVSE bigint;
PistolsCount bigint;
BEGIN
IF TG_OP = 'INSERT' THEN
EVSE = new."ID";
PistolsCount = new."PistolCount";
INSERT INTO "GreenTE"."Pistols"("EVSE", "PistolNumber") values (EVSE, PistolsCount);
RETURN NEW;
END IF;
END;