Skip to content

AttributeError: 'NoneType' object has no attribute 'split' #105

@Artem3335

Description

@Artem3335

import vk_api, random
from TestBot.plugins import system, functions
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType

vk, longpoll = system.session()

while True:
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW:
message = event.obj.text.split()
print(event.obj.peer_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions