Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
📰@Botfather Officially Launches as a Mini App
The well-known bot @BotFather—the central tool for creating and managing Telegram bots—has now been made available as a Mini App.
This new feature allows users to access all of BotFather’s functionalities through an updated, interactive interface, no need to manually enter text commands.
#botfather
👉The TG Times
@nashrabot
Qué puede hacer este bot?
Impresionante bot para canales y propietarios de listas de publicidad te ayuda a crear publicaciones enriquecidas, podcasting en muchos canales
Idioma: Inglés
(visto en @BotsGram_cu)
#botfather, #token, #create, #development, #dev, #botbuilding