This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import WebKit | |
import UIKit | |
// This is just an example ViewController that has been stripped of all code except the one relevant for FeatureCat. | |
class AnyViewController: UIViewController { | |
// Excluded here: All the other code you need for your UI. | |
// Return the WebView in whatever way suits you best (segues, etc.). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/https' | |
# Sends a message to a Telegram bot and specific chat as defined in the environment variables. | |
class Postcard | |
def initialize(message) | |
@message = message | |
@chat_id = ENV['POSTCARD_CHAT_ID'] | |
@bot_token = ENV['POSTCARD_BOT_TOKEN'] | |
end |