You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive all incoming messages, but not user name, how can I get the user name in parallel with receiving the message
client.on(TD::Types::Update) do |update|
data = update.to_json
puts data
parse = JSON.parse(data)
puts "ID пользователя #{parse['last_message']['id']}"
puts " Кому отправили #{parse['last_message']['sender_user_id']}"
puts " Тип сообщения #{parse['last_message']['@type']}"
puts " Сообщение #{parse['last_message']['content']['text']['text'] }"
end
The text was updated successfully, but these errors were encountered:
I receive all incoming messages, but not user name, how can I get the user name in parallel with receiving the message
client.on(TD::Types::Update) do |update|
data = update.to_json
puts data
parse = JSON.parse(data)
puts "ID пользователя #{parse['last_message']['id']}"
puts " Сообщение #{parse['last_message']['content']['text']['text'] }"
end
The text was updated successfully, but these errors were encountered: