I want to send a message with telethon using phone number but it give me an error that phone format is incorrect.this is my code:
from telethon import TelegramClient
from telethon.tl.types import PeerUser
api_id = 123456
api_hash = 'Something'
client = TelegramClient('Telethon', api_id, api_hash)
client.start()
contact = client.get_entity("+98XXXXXXXXXX")
Note: Python version 3.6 and latest version of Telethon.