Skip to content

bot connected with proxy #1295

@Husseinbeygi

Description

@Husseinbeygi

hi
i have a question
i connect my to telegram with socks 5
here is my code:

`
print('Start...')
updater = Updater('TOKEN',request_kwargs={
'proxy_url': 'socks5://127.0.0.1:9150/'
})
print('connected...')

`

how can i know that my bot is connected with my proxy??
and i'm sure that my proxy is work.

i use this code
`
print('Start...')
updater = Updater('TOKEN',request_kwargs={
'proxy_url': 'socks5://127.0.0.1:9150/'
})
print('connected...')

##################################################################

def hello(bot, update):
update.message.reply_text(
'Hello {}'.format(update.message.from_user.first_name))

updater.dispatcher.add_handler(CommandHandler('start', hello))

updater.start_polling()

`
And still no Answer when i send /start

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions