I'm making a telegram bot and using update and context from telegram.ext
module in Python.
look at this code:
{ctelegram.messageentity.MessageEntity object at exe88882A8D1B3CD38>: +919116348047"}
This is output of my variable I want to take only phone number from it is there any way to get only phone numbers?
I'll show you some part of my code I had used to print this?
def search(update, context):
number = update.message.parse_entities(types=MessageEntity.PHONE NUMBER)
context.bot.sendMessage(chat_id=update.effective_chat.id,text=("working on it..."))
print(number)