Deletes internal `message_id`.
(self)
| 75 | return future |
| 76 | |
| 77 | def delete(self): |
| 78 | """Deletes internal `message_id`.""" |
| 79 | try: |
| 80 | future = self.submit( |
| 81 | self.session.post, self.API + '%s/deleteMessage' % self.token, |
| 82 | data={'chat_id': self.chat_id, 'message_id': self.message_id}) |
| 83 | except Exception as e: |
| 84 | tqdm_auto.write(str(e)) |
| 85 | else: |
| 86 | return future |
| 87 | |
| 88 | |
| 89 | class tqdm_telegram(tqdm_auto): |