Skip to content

Commit

Permalink
sorry for this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmshooreshi committed Apr 6, 2022
1 parent 0edc384 commit 4a8afdd
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,37 +173,7 @@ def isTextMethod(message,bot)
$bot_is=bot
puts "telegram bot started"
bot.listen do |message|
if $STOP==0
case message
when Telegram::Bot::Types::Message
puts message
if $STOP==0
if message.text!="/stop"
$msgChId = message.chat.id
#puts "message: #{message}"
# if message.text !=
if message.photo!=[]
#puts "#{message.photo}"
puts "salam"
$isText=0
$isPhoto=1
end

$msg=message
checkLogStatus

$isText=1
$codeVar = message.text
if $codeVar.length>6 && message.text.include?("/start")
$codeVar= $codeVar.delete_prefix("/start ")
$message_orig = $data_hash["#{$codeVar}"]
$showMsg=1
end
isTextMethod(message,bot)
end
end
end
end

end
end

0 comments on commit 4a8afdd

Please sign in to comment.