Soluții

How to Auto-Delete Messages in Any Telegram Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat.

You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time.

At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature. The process for enabling the auto-delete feature is different on Android and iPhone, so we’ll cover both methods below.

[mai mult...]

How to Stop Windows 10 From Turning Off Your Screen

Do you find yourself turning on the screen on your Windows 10 PC too often? It’s possible to stop the screen from turning off altogether. You can select different preferences for when your PC is running on battery power and when it’s plugged into a power source, too.

If you have a portable device like a laptop or tablet, you get to decide how the screen acts while on battery or plugged in. Desktops only have the plugged-in option. The screen timeout length can be anywhere from two minutes to five hours.

[mai mult...]

Python string – replace()

replace() is an inbuilt function in Python programming language that returns a copy of the string where all occurrences of a substring is replaced with another substring.

Syntax: string.replace(old, new, count)

old – old substring you want to replace.

new – new substring which would replace the old substring.

count – the number of times you want to replace the old substring with the new substring. (Optional)

[mai mult...]