Giter Site home page Giter Site logo

Баг about vkbottle HOT 8 CLOSED

vkbottle avatar vkbottle commented on July 26, 2024 1
Баг

from vkbottle.

Comments (8)

timoniq avatar timoniq commented on July 26, 2024 1

Баг воспроизводится при генерации клавиатуры через vkbottle.keyboard.Keyboard. Проблема была решена, пожалуйста, обновитесь с мастера.

from vkbottle.

Doncode avatar Doncode commented on July 26, 2024

Обходной путь в виде хака
work around

keyboard = Keyboard(one_time=True)
keyboard.add_row()
keyboard.add_button(OpenLink('Пополнить', link='https://vk.com/'))
keyboard = keyboard.generate()

#work around 
keyboard_dict = json.loads(keyboard)
del keyboard_dict['buttons'][0][0]['color']
keyboard2 = json.dumps(keyboard_dict)

await ans('text', keyboard=keyboard2)

from vkbottle.

timoniq avatar timoniq commented on July 26, 2024

Проблема уже была решена ранее, но решения еще нет в pypi. Обновите библиотеку так:

pip install https://github.com/timoniq/vkbottle/archive/master.zip --upgrade

from vkbottle.

Doncode avatar Doncode commented on July 26, 2024

Проблема не решилась обновление из zip

from vkbottle.

timoniq avatar timoniq commented on July 26, 2024

Баг не воспроизводится

from vkbottle.

Doncode avatar Doncode commented on July 26, 2024

@timoniq Обновился до vkbottle==2.7.3
Теперь у всех кнопок пропали цвета

from vkbottle.

Doncode avatar Doncode commented on July 26, 2024
    @property
    def button(self):
        b = {"action": except_none_self(self.action.dict())}
        if self.action is Text:
            b["color"] = self.color
        return b
self.action
<Keyboard (action) Text>

self.action is Text
False

isinstance(self.action, Text)
True

from vkbottle.

Doncode avatar Doncode commented on July 26, 2024

@timoniq Спасибо за оперативное решение проблемы

from vkbottle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.