I am using telethon in python. When I write .set 14 in Telegram, I want to receive the number 14 and define it as a variable.
@client.on(telethon.events.NewMessage(outgoing=True))
async def outgoing(m):
global ss
if m.text==".set":
ss=[int(s) for s in m.split() if s.isdigit()]
But when I test it, I get the following error
AttributeError: 'Message' object has no attribute 'split'
Does anyone have a solution to this issue?